xref: /openbmc/linux/tools/lib/api/fs/fs.h (revision 93d90ad7)
1 #ifndef __API_FS__
2 #define __API_FS__
3 
4 #ifndef SYSFS_MAGIC
5 #define SYSFS_MAGIC            0x62656572
6 #endif
7 
8 #ifndef PROC_SUPER_MAGIC
9 #define PROC_SUPER_MAGIC       0x9fa0
10 #endif
11 
12 const char *sysfs__mountpoint(void);
13 const char *procfs__mountpoint(void);
14 
15 int filename__read_int(const char *filename, int *value);
16 int sysctl__read_int(const char *sysctl, int *value);
17 #endif /* __API_FS__ */
18