get_sysfs_attr_as_boolean_uncached


Description:

public bool get_sysfs_attr_as_boolean_uncached (string name)

Look up the sysfs attribute with name on this and convert it to an boolean.

This is done by doing a case-insensitive string comparison on the string value against "1", "true", "Y" and "y". This function does blocking I/O, and updates the sysfs attributes cache.

Parameters:

this

A Device.

name

Name of the sysfs attribute.

Returns:

The value of the sysfs attribute or false if there is no such attribute.