File: sysfs.h

package info (click to toggle)
mcelog 104-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 996 kB
  • ctags: 1,508
  • sloc: ansic: 7,739; sh: 481; makefile: 87
file content (13 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13

struct map { 
	char *name;
	int value;
};

char *read_field(char *base, char *name);
unsigned read_field_num(char *base, char *name);
unsigned read_field_map(char *base, char *name, struct map *map);

int sysfs_write(const char *name, const char *format, ...)
	__attribute__((format(printf,2,3)));
int sysfs_available(const char *name, int flags);