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 value 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.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE for success.