l.h.i.h.IHWDeviceDriverLinkSet(Interface) : interface documentation

Part of lp.hardwaredb.interfaces.hwdb View In Hierarchy

The set of device driver links.
Method create Create a new IHWDeviceDriver instance.
Method getByDeviceAndDriver Return an IHWDeviceDriver instance.
Method getOrCreate Return an IHWDeviceDriverLink record or create one.
def create(device, driver):
Create a new IHWDeviceDriver instance.
ParametersdeviceThe IHWDevice instance to be linked.
driverThe IHWDriver instance to be linked.
ReturnsThe new IHWDeviceDriver instance.
def getByDeviceAndDriver(device, driver):
Return an IHWDeviceDriver instance.
ParametersdeviceAn IHWDevice instance.
driverAn IHWDriver instance.
ReturnsThe IHWDeviceDriver instance matching the given parameters or None, if no existing instance matches.
def getOrCreate(device, driver):
Return an IHWDeviceDriverLink record or create one.

Return an existing IHWDeviceDriverLink record matching te given parameters or create a new one, if no exitsing record matches.

ParametersdeviceThe IHWDevice instance to be linked.
driverThe IHWDriver instance to be linked.
ReturnsAn IHWDeviceDriverLink instance.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.