Top |
char * | igt_sysfs_path () |
int | igt_sysfs_open () |
int | igt_sysfs_open_parameters () |
bool | igt_sysfs_set_parameter () |
int | igt_sysfs_read () |
int | igt_sysfs_write () |
bool | igt_sysfs_set () |
char * | igt_sysfs_get () |
int | igt_sysfs_scanf () |
int | igt_sysfs_vprintf () |
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 () |
void | bind_fbcon () |
void | kick_snd_hda_intel () |
void | fbcon_blink_enable () |
This library provides helpers to access sysfs features. Right now it only
provides basic support for like igt_sysfs_open()
.
char * igt_sysfs_path (int device
,char *path
,int pathlen
);
This finds the sysfs directory corresponding to device
.
int
igt_sysfs_open (int device
);
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_parameter (int device
,const char *parameter
,const char *fmt
,...
);
int igt_sysfs_read (int dir
,const char *attr
,void *data
,int len
);
This reads len
bytes from the sysfs file to data
dir |
directory for the device from |
|
attr |
name of the sysfs node to open |
|
data |
the block to read into |
|
len |
the maximum length to read |
int igt_sysfs_write (int dir
,const char *attr
,const void *data
,int len
);
This writes len
bytes from data
to the sysfs file.
dir |
directory for the device from |
|
attr |
name of the sysfs node to open |
|
data |
the block to write from |
|
len |
the length to write |
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_vprintf (int dir
,const char *attr
,const char *fmt
,va_list ap
);
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 |
void
bind_fbcon (bool enable
);
This functions enables/disables the text console running on top of the framebuffer device.
void
kick_snd_hda_intel (void
);
This functions unbinds the snd_hda_intel driver so the module cand be unloaded.