Copyright (C) 2000-2012 |
Manpages SYSFSSection: Linux Programmer's Manual (2)Updated: 1995-08-09 Index Return to Main Contents NAMEsysfs - get file system type informationSYNOPSISint 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:
The numbering of the file-system type indexes begins with zero. 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.ERRORS
CONFORMING TOSVr4.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.
IndexThis document was created by man2html, using the manual pages. Time: 23:10:25 GMT, April 26, 2024 |