FwupdPlugin.UdevDevice.get_sysfs_attr

### Method

# FwupdPlugin UdevDeviceget_sysfs_attr

#### Declaration [src]

    const gchar*
    fu_udev_device_get_sysfs_attr (
      FuUdevDevice* self,
      const gchar* attr,
      GError** error
    )

#### Description [src]

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

Available since: | 1.4.5

#### Parameters

`attr` | `const gchar*`
| Name of attribute to get.
| 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: | `const gchar*`
| String or NULL.
| The data is owned by the instance.
| The value is a NUL terminated UTF-8 string.