Method

FwupdPluginUdevDeviceget_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 string is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: utf8
 

String or NULL.

 The data is owned by the instance.
 The string is a NUL terminated UTF-8 string.