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

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

The representation of a HAL device node.
Method __init__ HALDevice constructor.
Method getProperty Return the HAL property property_name.
Method parent_udi The UDI of the parent device.
Method device_id See BaseDevice.
Method pci_class See BaseDevice.
Method pci_subclass The PCI device sub-class of the device or None for Non-PCI devices.
Method usb_vendor_id See BaseDevice.
Method usb_product_id See BaseDevice.
Method scsi_vendor See BaseDevice.
Method scsi_model See BaseDevice.
Method driver_name See BaseDevice.
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 for this device.
Method vendor_id See BaseDevice.
Method product_id See BaseDevice.
Method scsi_controller See BaseDevice.

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, id, udi, properties, parser):
HALDevice constructor.
ParametersidThe ID of the HAL device in the submission data as specified in <device id=...>. (type: int)
udiThe UDI of the HAL device. (type: string)
propertiesThe HAL properties of the device. (type: dict)
parserThe parser processing a submission. (type: SubmissionParser)
def getProperty(self, property_name):
Return the HAL property property_name.

Note that there is no check of the property type.

@property
def parent_udi(self):
The UDI of the parent device.
@property
def device_id(self):
See BaseDevice.
@property
def pci_class(self):
See BaseDevice.
@property
def pci_subclass(self):
The PCI device sub-class of the device or None for Non-PCI devices.
@property
def usb_vendor_id(self):
See BaseDevice.
@property
def usb_product_id(self):
See BaseDevice.
@property
def scsi_vendor(self):
See BaseDevice.
@property
def scsi_model(self):
See BaseDevice.
@property
def driver_name(self):
See BaseDevice.
@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 for 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 scsi_controller(self):
See BaseDevice.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.