| Top |  |  |  |  | 
| int | igt_sysfs_open () | 
| int | igt_sysfs_open_parameters () | 
| bool | igt_sysfs_set () | 
| char * | igt_sysfs_get () | 
| int | igt_sysfs_scanf () | 
| int | igt_sysfs_printf () | 
| uint32_t | igt_sysfs_get_u32 () | 
| bool | igt_sysfs_set_u32 () | 
| bool | igt_sysfs_get_boolean () | 
| bool | igt_sysfs_set_boolean () | 
This library provides helpers to access sysfs features. Right now it only
provides basic support for like igt_sysfs_open().
int igt_sysfs_open (int device,int *idx);
This opens the sysfs directory corresponding to device for use
with igt_sysfs_set() and igt_sysfs_get().
int
igt_sysfs_open_parameters (int device);
This opens the module parameters directory (under sysfs) corresponding
to the device for use with igt_sysfs_set() and igt_sysfs_get().
bool igt_sysfs_set (int dir,const char *attr,const char *value);
This writes the value to the sysfs file.
| dir | directory for the device from  | |
| attr | name of the sysfs node to open | |
| value | the string to write | 
char * igt_sysfs_get (int dir,const char *attr);
This reads the value from the sysfs file.
int igt_sysfs_scanf (int dir,const char *attr,const char *fmt,...);
scanf() wrapper for sysfs.
| dir | directory for the device from  | |
| attr | name of the sysfs node to open | |
| fmt | scanf format string | |
| ... | Additional paramaters to store the scaned input values | 
int igt_sysfs_printf (int dir,const char *attr,const char *fmt,...);
printf() wrapper for sysfs.
| dir | directory for the device from  | |
| attr | name of the sysfs node to open | |
| fmt | printf format string | |
| ... | Additional paramaters to store the scaned input values | 
uint32_t igt_sysfs_get_u32 (int dir,const char *attr);
Convenience wrapper to read a unsigned 32bit integer from a sysfs file.
bool igt_sysfs_set_u32 (int dir,const char *attr,uint32_t value);
Convenience wrapper to write a unsigned 32bit integer to a sysfs file.
| dir | directory for the device from  | |
| attr | name of the sysfs node to open | |
| value | value to set | 
bool igt_sysfs_get_boolean (int dir,const char *attr);
Convenience wrapper to read a boolean sysfs file.
bool igt_sysfs_set_boolean (int dir,const char *attr,bool value);
Convenience wrapper to write a boolean sysfs file.
| dir | directory for the device from  | |
| attr | name of the sysfs node to open | |
| value | value to set |