Method

FwupdPluginUdevDeviceget_sysfs_attr_uint64

Declaration [src]

gboolean
fu_udev_device_get_sysfs_attr_uint64 (
  FuUdevDevice* self,
  const gchar* attr,
  guint64* value,
  GError** error
)

Description [src]

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

Available since:1.7.2

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.
value guint64*
 

Value to return.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE for success.