FwupdPlugin.UdevDevice.set_physical_id

### Method

# FwupdPlugin UdevDeviceset_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.

The devtype can also be specified for a specific device, which is useful when the subsystem alone is not enough to identify the physical device. e.g. ignoring the specific LUNs for a SCSI device.

Available since: | 1.1.2

#### Parameters

`subsystems` | `const gchar*`
| A subsystem string, e.g. `pci,usb,scsi:scsi_target`
| The data is owned by the caller of the function.
| The value 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.