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". 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.
this |
A Device. |
name |
Name of the sysfs attribute. |
The value of the sysfs attribute or |