SYSFSSection: Linux Programmer's Manual (2)
Return to Main Contents
NAMEsysfs - get file system type information
SYNOPSISint sysfs(int option, const char *fsname);
int sysfs(int option, unsigned int fs_index, char *buf);
DESCRIPTIONsysfs returns information about the file system types currently present in the kernel. The specific form of the sysfs call and the information returned depends on the option in effect:
RETURN VALUEOn success, sysfs returns the file-system index for option 1, zero for option 2, and the number of currently configured file systems for option 3. On error, -1 is returned, and errno is set appropriately.
NOTEOn Linux with the proc filesystem mounted on /proc, the same information can be derived from /proc/filesystems.
BUGSThere is no libc or glibc support. There is no way to guess how large buf should be.
This document was created by man2html, using the manual pages.
Time: 16:02:09 GMT, February 24, 2018