Method

FwupdPluginUdevDeviceset_physical_id

Declaration [src]

gboolean
fu_udev_device_set_physical_id (
  FuUdevDevice* self,
  const gchar* subsystems,
  GError** error
)

Description [src]

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

Parameters

subsystems const gchar*
 

A subsystem string, e.g. pci,usb

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if the physical device was set.