Class

FwupdPluginUdevDevice

[]

Description [src]

class FwupdPlugin.UdevDevice : FwupdPlugin.Device {
  parent_instance: FuDevice
}

A UDev device, typically only available on Linux.

See also: FuDevice

[]

Constructors

fu_udev_device_new

Creates a new FuUdevDevice.

since: 1.8.2

[]

Instance methods

fu_udev_device_emit_changed

Emits the ::changed signal for the object.

since: 1.1.2

fu_udev_device_find_usb_device

Gets the matching GUsbDevice for the GUdevDevice.

since: 1.8.7

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_cls

Gets the PCI class for a device.

since: 1.8.11

fu_udev_device_get_dev

Gets the GUdevDevice.

since: 1.1.2

fu_udev_device_get_device_file

Gets the device node.

since: 1.3.1

fu_udev_device_get_devtype

Returns the Udev device type.

since: 1.4.5

fu_udev_device_get_driver

Gets the device driver, e.g. psmouse.

since: 1.5.3

fu_udev_device_get_fd

Gets the file descriptor if the device is open.

since: 1.3.3

fu_udev_device_get_model

Gets the device model code.

since: 1.1.2

fu_udev_device_get_number

Gets the device number, if any.

since: 1.5.0

fu_udev_device_get_parent_name

Returns the name of the direct ancestor of this device.

since: 1.4.5

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_revision

Gets the device revision.

since: 1.1.2

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_slot_depth

Determine how far up a chain a given device is.

since: 1.2.4

fu_udev_device_get_subsystem

Gets the device subsystem, e.g. pci

since: 1.1.2

fu_udev_device_get_subsystem_model

Gets the device subsystem model code.

since: 1.5.0

fu_udev_device_get_subsystem_vendor

Gets the device subsystem vendor code.

since: 1.5.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_get_vendor

Gets the device vendor code.

since: 1.1.2

fu_udev_device_ioctl

Control a device using a low-level request.

since: 1.8.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_pread

Read a buffer from a file descriptor at a given offset.

since: 1.8.2

fu_udev_device_pwrite

Write a buffer to a file descriptor at a given offset.

since: 1.8.2

fu_udev_device_seek

Seeks a file descriptor to a given offset.

since: 1.7.2

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_device_file

Sets the device file to use for reading and writing.

since: 1.8.7

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_flags

Sets the parameters to use when opening the device.

since: 1.3.6

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

fu_udev_device_write_sysfs

Writes data into a sysfs attribute.

since: 1.4.5

Methods inherited from FuDevice (155)
Methods inherited from FwupdDevice (112)
Methods inherited from GObject (43)
[]

Properties

FwupdPlugin.UdevDevice:bind-id

The bind ID to use when binding a new driver.

since: 1.7.2

FwupdPlugin.UdevDevice:device-file

The low level file to use for device access.

since: 1.3.1

FwupdPlugin.UdevDevice:driver

The driver being used for the device.

since: 1.5.3

FwupdPlugin.UdevDevice:subsystem

The device subsystem.

since: 1.1.2

FwupdPlugin.UdevDevice:udev-device

The low-level GUdevDevice.

since: 1.1.2

Properties inherited from FuDevice (6)
Properties inherited from FwupdDevice (13)
[]

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)
Signals inherited from GObject (1)

Class structure