Class
FwupdPluginUdevDevice
Instance methods
fu_udev_device_get_bind_id
Gets the device ID used for binding the device, e.g. pci:1:2:3
since: 1.7.2
fu_udev_device_get_children_with_subsystem
Get a list of devices that are children of self and have the provided subsystem.
since: 1.6.2
fu_udev_device_get_parent_with_subsystem
Get the device that is a parent of self and has the provided subsystem.
since: 1.7.6
fu_udev_device_get_siblings_with_subsystem
Get a list of devices that are siblings of self and have the provided subsystem.
since: 1.6.0
fu_udev_device_get_sysfs_attr
Reads an arbitrary sysfs attribute ‘attr’ associated with UDEV device.
since: 1.4.5
fu_udev_device_get_sysfs_attr_uint64
Reads an arbitrary sysfs attribute ‘attr’ associated with UDEV device as a uint64.
since: 1.7.2
fu_udev_device_get_sysfs_path
Gets the device sysfs path, e.g. /sys/devices/pci0000:00/0000:00:14.0
.
since: 1.1.2
fu_udev_device_is_pci_base_cls
Determines whether the device matches a given pci base class type.
since: 1.8.11
fu_udev_device_set_bind_id
Sets the device ID used for binding the device, e.g. pci:1:2:3
since: 1.7.2
fu_udev_device_set_dev
Sets the GUdevDevice
. This may need to be used to replace the actual device
used for reads and writes before the device is probed.
since: 1.6.2
fu_udev_device_set_fd
Replace the file descriptor to use when the device has already been opened.
This object will automatically close()
fd
when fu_device_close()
is called.
since: 1.3.3
fu_udev_device_set_logical_id
Sets the logical ID from the device subsystem. Plugins should choose the
subsystem that most relevant in the udev tree, for instance choosing hid
over usb
for a mouse device.
since: 1.5.8
fu_udev_device_set_physical_id
Sets the physical ID from the device subsystem. Plugins should choose the
subsystem that is “deepest” in the udev tree, for instance choosing usb
over pci
for a mouse device.
since: 1.1.2
Methods inherited from FwupdDevice (112)
Please see FwupdDevice for a full list of methods.
Properties
Properties inherited from FuDevice (6)
FwupdPlugin.Device:backend-id
The device backend ID.
since: 1.5.8
FwupdPlugin.Device:context
The FuContext
to use.
since: 1.6.0
FwupdPlugin.Device:logical-id
The device logical ID.
since: 1.1.2
FwupdPlugin.Device:parent
The device parent.
since: 1.0.8
FwupdPlugin.Device:physical-id
The device physical ID.
since: 1.1.2
FwupdPlugin.Device:proxy
The device proxy to use.
since: 1.4.1
Properties inherited from FwupdDevice (13)
Fwupd.Device:battery-level
The device battery level in percent.
since: 1.5.8
Fwupd.Device:battery-threshold
The device battery threshold in percent.
since: 1.5.8
Fwupd.Device:flags
The device flags.
since: 0.9.3
Fwupd.Device:parent
The device parent.
since: 1.0.8
Fwupd.Device:percentage
The current device percentage.
since: 1.8.11
Fwupd.Device:problems
The problems with the device that the user could fix, e.g. “lid open”.
since: 1.8.1
Fwupd.Device:protocol
The device protocol.
deprecated: 1.5.8 since: 1.3.6
Fwupd.Device:status
The current device status.
since: 1.4.0
Fwupd.Device:update-error
The device update error.
since: 0.9.8
Fwupd.Device:update-image
The update image for the device.
since: 1.4.5
Fwupd.Device:update-message
The device update message.
since: 1.2.4
Fwupd.Device:update-state
The device update state.
since: 0.9.8
Fwupd.Device:version-format
The version format of the device.
since: 1.2.9
Signals
FwupdPlugin.UdevDevice::changed
The ::changed signal is emitted when the low-level GUdevDevice has changed.
since: 1.1.2
Signals inherited from FuDevice (3)
FuDevice::child-added
The ::child-added signal is emitted when a device has been added as a child.
since: 1.0.8
FuDevice::child-removed
The ::child-removed signal is emitted when a device has been removed as a child.
since: 1.0.8
FuDevice::request
The ::request signal is emitted when the device needs interactive action from the user.
since: 1.6.2
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.