l.h.s.h.UdevDevice(BaseDevice) : class documentation

Part of lp.hardwaredb.scripts.hwdbsubmissions View In Hierarchy

The representation of a udev device node.
Method __init__ HALDevice constructor.
Method device_id See BaseDevice.
Method root_device_ids The vendor and product IDs of the root device.
Method is_pci True, if this is a PCI device, else False.
Method pci_class_info Parse the udev property PCI_SUBSYS_ID.
Method pci_class See BaseDevice.
Method pci_subclass See BaseDevice.
Method pci_ids The PCI vendor and product IDs.
Method is_usb True, if this is a USB device, else False.
Method usb_ids The vendor ID, product ID, product version for USB devices.
Method usb_vendor_id See BaseDevice.
Method usb_product_id See BaseDevice.
Method is_scsi_device True, if this is a SCSI device, else False.
Method scsi_vendor The SCSI vendor name of the device or None for Non-SCSI devices.
Method scsi_model The SCSI model name of the device or None for Non-SCSI devices.
Method raw_bus See BaseDevice.
Method is_root_device See BaseDevice.
Method getVendorOrProduct Return the vendor or product of this device.
Method vendor See BaseDevice.
Method product See BaseDevice.
Method getVendorOrProductID Return the vendor or product ID of this device.
Method vendor_id See BaseDevice.
Method product_id See BaseDevice.
Method driver_name See BaseDevice.
Method scsi_controller See BaseDevice.
Method id Undocumented

Inherited from BaseDevice:

Method addChild Add a child device and set the child's parent.
Method vendor_id_for_db The vendor ID in the representation needed for the HWDB tables.
Method product_id_for_db The product ID in the representation needed for the HWDB tables.
Method translateScsiBus Return the real bus of a device where raw_bus=='scsi'.
Method translatePciBus Undocumented
Method real_bus Return the bus this device connects to on the host side.
Method is_real_device True, if the HAL device correspends to a real device.
Method getRealChildren Return the list of real child devices of this devices.
Method has_reliable_data Can this device be stored in the HWDB?
Method getScsiVendorAndModelName Separate vendor and model name of SCSI decvices.
Method getDriver Return the HWDriver instance associated with this device.
Method ensureVendorIDVendorNameExists Ensure that a useful HWVendorID record for self.vendor_id exists.
Method createDBData Create HWDB records for this HAL device and its children.
Method createDBDriverData Create HWDB records for drivers of this device and its children.
def __init__(self, parser, udev_data, sysfs_data=None, dmi_data=None):
HALDevice constructor.
ParametersudevdataThe udev data for this device
sysfs_datasysfs data for this device.
parserThe parser processing a submission. (type: SubmissionParser)
@property
def device_id(self):
See BaseDevice.
@property
def root_device_ids(self):
The vendor and product IDs of the root device.
@property
def is_pci(self):
True, if this is a PCI device, else False.
@property
def pci_class_info(self):
Parse the udev property PCI_SUBSYS_ID.
Returns(PCI class, PCI sub-class, version) for a PCI device or (None, None, None) for other devices.
@property
def pci_class(self):
See BaseDevice.
@property
def pci_subclass(self):
See BaseDevice.
@property
def pci_ids(self):
The PCI vendor and product IDs.
ReturnsA dictionary containing the vendor and product IDs. The IDs are set to None for Non-PCI devices.
@property
def is_usb(self):
True, if this is a USB device, else False.
@property
def usb_ids(self):
The vendor ID, product ID, product version for USB devices.
ReturnsA dictionary containing the vendor and product IDs and the product version for USB devices. The IDs are set to None for Non-USB devices.
@property
def usb_vendor_id(self):
See BaseDevice.
@property
def usb_product_id(self):
See BaseDevice.
@property
def is_scsi_device(self):
True, if this is a SCSI device, else False.
@property
def scsi_vendor(self):
The SCSI vendor name of the device or None for Non-SCSI devices.
@property
def scsi_model(self):
The SCSI model name of the device or None for Non-SCSI devices.
@property
def raw_bus(self):
See BaseDevice.
@property
def is_root_device(self):
See BaseDevice.
def getVendorOrProduct(self, type_):
Return the vendor or product of this device.

:return: The vendor or product data for this device.
:param type_: 'vendor' or 'product'
@property
def vendor(self):
See BaseDevice.
@property
def product(self):
See BaseDevice.
def getVendorOrProductID(self, type_):
Return the vendor or product ID of this device.

:return: The vendor or product ID for this device.
:param type_: 'vendor' or 'product'
@property
def vendor_id(self):
See BaseDevice.
@property
def product_id(self):
See BaseDevice.
@property
def driver_name(self):
See BaseDevice.
@property
def scsi_controller(self):
See BaseDevice.
@property
def id(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.