get_sysfs_attr


Description:

public unowned string? get_sysfs_attr (string name)

Look up the sysfs attribute with name on this.

The retrieved value is cached in the device. Repeated calls will return the same value and not open the attribute again, unless updated through one of the "uncached" functions.

Parameters:

this

A Device.

name

Name of the sysfs attribute.

Returns:

The value of the sysfs attribute or null if there is no such attribute. Do not free this string, it is owned by this.




2022 vala-language.org