Class

FwupdPluginUdevDevice

Description [src]

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

A UDev device, typically only available on Linux.

See also: FuDevice

Hierarchy

hierarchy this FuUdevDevice ancestor_0 FuDevice ancestor_0--this ancestor_1 FwupdDevice ancestor_1--ancestor_0 ancestor_2 GObject ancestor_2--ancestor_1

Ancestors

Constructors

fu_udev_device_new

Creates a new FuUdevDevice.

Available since: 1.1.2

Instance methods

fu_udev_device_emit_changed

Emits the ::changed signal for the object.

Available since: 1.1.2

fu_udev_device_get_children_with_subsystem

Get a list of devices that are children of self and have the provided subsystem.

Available since: 1.6.2

fu_udev_device_get_dev

Gets the GUdevDevice.

Available since: 1.1.2

fu_udev_device_get_device_file

Gets the device node.

Available since: 1.3.1

fu_udev_device_get_devtype

Returns the Udev device type.

Available since: 1.4.5

fu_udev_device_get_driver

Gets the device driver, e.g. psmouse.

Available since: 1.5.3

fu_udev_device_get_fd

Gets the file descriptor if the device is open.

Available since: 1.3.3

fu_udev_device_get_model

Gets the device device code.

Available since: 1.1.2

fu_udev_device_get_number

Gets the device number, if any.

Available since: 1.5.0

fu_udev_device_get_parent_name

Returns the name of the direct ancestor of this device.

Available since: 1.4.5

fu_udev_device_get_revision

Gets the device revision.

Available 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.

Available since: 1.6.0

fu_udev_device_get_slot_depth

Determine how far up a chain a given device is.

Available since: 1.2.4

fu_udev_device_get_subsystem

Gets the device subsystem, e.g. pci

Available since: 1.1.2

fu_udev_device_get_subsystem_model

Gets the device subsystem model code.

Available since: 1.5.0

fu_udev_device_get_subsystem_vendor

Gets the device subsystem vendor code.

Available since: 1.5.0

fu_udev_device_get_sysfs_attr

Reads an arbitrary sysfs attribute ‘attr’ associated with UDEV device.

Available since: 1.4.5

fu_udev_device_get_sysfs_path

Gets the device sysfs path, e.g. /sys/devices/pci0000:00/0000:00:14.0.

Available since: 1.1.2

fu_udev_device_get_vendor

Gets the device vendor code.

Available since: 1.1.2

fu_udev_device_ioctl

Control a device using a low-level request.

Available since: 1.3.3

fu_udev_device_pread

Read from a file descriptor at a given offset.

Available since: 1.3.3

fu_udev_device_pread_full

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

Available since: 1.4.5

fu_udev_device_pwrite

Write to a file descriptor at a given offset.

Available since: 1.3.3

fu_udev_device_pwrite_full

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

Available since: 1.4.5

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.

Available 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.

Available since: 1.3.3

fu_udev_device_set_flags

Sets the parameters to use when opening the device.

Available 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.

Available 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.

Available since: 1.1.2

fu_udev_device_write_sysfs

Writes data into a sysfs attribute.

Available since: 1.4.5

Methods inherited from FuDevice (125)
fu_device_activate

Activates up a device, which normally means the device switches to a new firmware version. This should only be called when data loss cannot occur.

Available since: 1.2.6

fu_device_add_child

Sets any child device. An child device is logically linked to the primary device in some way.

Available since: 1.0.8

fu_device_add_counterpart_guid

Adds a GUID to the device. If the guid argument is not a valid GUID then it is converted to a GUID using fwupd_guid_hash_string().

Available since: 1.1.2

fu_device_add_flag

Adds a device flag to the device.

Available since: 0.1.0

fu_device_add_guid

Adds a GUID to the device. If the guid argument is not a valid GUID then it is converted to a GUID using fwupd_guid_hash_string().

Available since: 0.7.2

fu_device_add_guid_full

Adds a GUID to the device. If the guid argument is not a valid GUID then it is converted to a GUID using fwupd_guid_hash_string().

Available since: 1.6.2

fu_device_add_instance_id

Adds an instance ID to the device. If the instance_id argument is already a valid GUID then fu_device_add_guid() should be used instead.

Available since: 1.2.5

fu_device_add_instance_id_full

Adds an instance ID with all parameters set.

Available since: 1.2.9

fu_device_add_internal_flag

Adds a private flag that stays internal to the engine and is not leaked to the client.

Available since: 1.5.5

fu_device_add_parent_guid

Sets any parent device using a GUID. An parent device is logically linked to the primary device in some way and can be added before or after self.

Available since: 1.0.8

fu_device_add_parent_physical_id

Sets any parent device using the physical ID. An parent device is logically linked to the primary device in some way and can be added before or after self.

Available since: 1.6.2

fu_device_add_possible_plugin

Adds a plugin name to the list of plugins that might be able to handle this device. This is tyically called from a quirk handler.

Available since: 1.5.1

fu_device_add_private_flag

Adds a private flag that can be used by the plugin for any purpose.

Available since: 1.6.2

fu_device_add_security_attrs

Adds HSI security attributes.

Available since: 1.6.0

fu_device_attach

Attaches a device from the bootloader into application mode.

Available since: 1.0.8

fu_device_attach_full

Attaches a device from the bootloader into application mode.

Available since: 1.7.0

fu_device_bind_driver

Binds a driver to the device, which normally means the kernel driver takes control of the hardware.

Available since: 1.5.0

fu_device_cleanup

Cleans up a device after an update. A different plugin can handle each of FuDevice->write_firmware(), FuDevice->attach() and FuDevice->cleanup().

Available since: 1.3.3

fu_device_close

Closes a device, optionally running a object-specific vfunc.

Available since: 1.1.2

fu_device_convert_instance_ids

Converts all the Device Instance IDs added using fu_device_add_instance_id() into actual GUIDs, unless FU_DEVICE_INTERNAL_FLAG_NO_AUTO_INSTANCE_IDS has been set.

Available since: 1.2.5

fu_device_detach

Detaches a device from the application into bootloader mode.

Available since: 1.0.8

fu_device_detach_full

Detaches a device from the application into bootloader mode.

Available since: 1.7.0

fu_device_dump_firmware

Reads the raw firmware image from the device by calling a plugin-specific vfunc. This raw firmware image may contain serial numbers or device-specific configuration but should be a byte-for-byte match compared to using an external SPI programmer.

Available since: 1.5.0

Properties

FwupdPlugin.UdevDevice:device-file
No description available.
FwupdPlugin.UdevDevice:driver
No description available.
FwupdPlugin.UdevDevice:subsystem
No description available.
FwupdPlugin.UdevDevice:udev-device
No description available.
Properties inherited from FuDevice (8)
FwupdPlugin.Device:backend-id
No description available.
FwupdPlugin.Device:battery-level
No description available.
FwupdPlugin.Device:battery-threshold
No description available.
FwupdPlugin.Device:context
No description available.
FwupdPlugin.Device:logical-id
No description available.
FwupdPlugin.Device:parent
No description available.
FwupdPlugin.Device:physical-id
No description available.
FwupdPlugin.Device:proxy
No description available.

Signals

FwupdPlugin.UdevDevice::changed
No description available.
Signals inherited from FuDevice (3)
FwupdPlugin.Device::child-added
No description available.
FwupdPlugin.Device::child-removed
No description available.
FwupdPlugin.Device::request
No description available.

Class structure

struct FwupdPluginUdevDeviceClass {
  FuDeviceClass parent_class;
  None __reserved;
  
}
Class members
parent_class
FuDeviceClass
  No description available.
__reserved
None
  No description available.