File: sysfs.h

package info (click to toggle)
mcelog 147%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 876 kB
  • ctags: 979
  • sloc: ansic: 7,634; sh: 482; makefile: 110; python: 60
file content (13 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (5)
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);