Part of lp.hardwaredb.interfaces.hwdb View In Hierarchy
Method | create | Create a new IHWSubmissionDevice instance. |
Method | getDevices | Return the IHWSubmissionDevice records of a submission |
Method | get | Return an IHWSubmissionDevice record with the given database ID. |
Method | numDevicesInSubmissions | Count how often a device or a driver appears in HWDB submissions. |
Parameters | device_driver_link | An IHWDeviceDriverLink instance. |
submission | The submission the device/driver combination is mentioned in. | |
parent | The parent of this device in the device tree in the submission. | |
Returns | The new IHWSubmissionDevice instance. |
Parameters | submission | An IHWSubmission instance. |
Returns | A sequence of IHWSubmissionDevice records. |
Parameters | id | The database ID. |
Returns | An IHWSubmissionDevice instance. |
At least each of bus, vendor_id, product_id must not be None or driver_name must not be None.
Parameters | bus | The HWBus of the device (optional). |
vendor_id | The vendor ID of the device (optional). | |
product_id | The product ID of the device (optional). | |
driver_name | Limit the count to devices controlled by the given driver (optional). | |
package_name | Limit the count to devices controlled by a driver from the given package (optional). | |
distro_target | Limit the count to devices appearing in HWDB submissions made for the given distribution, distroseries or distroarchseries (optional). | |
Returns | The number how often the given device appears in HWDB submissions. |