xref: /linux/tools/lib/api/fs/fs.h (revision e8d235d4d8fb8957bae5f6ed4521115203a00d8b)
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