Top | ![]() |
![]() |
![]() |
![]() |
FuUdevDevice *
fu_udev_device_new (GUdevDevice *udev_device
);
Creates a new FuUdevDevice.
Since: 1.1.2
GUdevDevice *
fu_udev_device_get_dev (FuUdevDevice *self
);
Gets the GUdevDevice.
Since: 1.1.2
const gchar *
fu_udev_device_get_sysfs_path (FuUdevDevice *self
);
Gets the device sysfs path, e.g. "/sys/devices/pci0000:00/0000:00:14.0".
Since: 1.1.2
const gchar *
fu_udev_device_get_subsystem (FuUdevDevice *self
);
Gets the device subsystem, e.g. "pci".
Since: 1.1.2
guint16
fu_udev_device_get_vendor (FuUdevDevice *self
);
Gets the device vendor code.
Since: 1.1.2
guint16
fu_udev_device_get_model (FuUdevDevice *self
);
Gets the device device code.
Since: 1.1.2
guint8
fu_udev_device_get_revision (FuUdevDevice *self
);
Gets the device revision.
Since: 1.1.2
guint fu_udev_device_get_slot_depth (FuUdevDevice *self
,const gchar *subsystem
);
gboolean fu_udev_device_set_physical_id (FuUdevDevice *self
,const gchar *subsystem
,GError **error
);
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