read_int


Description:

protected int read_int (string property) throws Error

Reads an attribute value as an int.

For values that do not change or if a change is signaled by a kernel uevent, then GUdev.get_sysattr_as_int should be used instead.

Parameters:

property

The name of the sysfs attribute to write to.

Returns:

The value that was read.

Exceptions:

Error

if there was an error while reading.