Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
sysfs(2)
Edit
PageHistory
Diff
Info
LikePages
SYSFS !!!SYSFS NAME SYNOPSIS DESCRIPTION RETURN VALUE ERRORS CONFORMING TO NOTE BUGS ---- !!NAME sysfs - get file system type information !!SYNOPSIS __int sysfs(int__ ''option''__, const char *__''fsname''__);__ __int sysfs(int__ ''option''__, unsigned int__ ''fs_index''__, char *__''buf''__);__ __int sysfs(int__ ''option''__);__ !!DESCRIPTION __sysfs__ 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: __1__ Translate the file-system identifier string ''fsname'' into a file-system type index. __2__ Translate the file-system type index ''fs_index'' into a null-terminated file-system identifier string. This string will be written to the buffer pointed to by ''buf''. Make sure that ''buf'' has enough space to accept the string. __3__ Return the total number of file system types currently present in the kernel. The numbering of the file-system type indexes begins with zero. !!RETURN VALUE On 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 __EINVAL__ ''fsname'' is not a valid file-system type identifier; ''fs_index'' is out-of-bounds; ''option'' is invalid. __EFAULT__ Either ''fsname'' or ''buf'' is outside your accessible address space. !!CONFORMING TO SVr4. !!NOTE On Linux with the ''proc'' filesystem mounted on ''/proc'', the same information can be derived from ''/proc/filesystems''. !!BUGS There is no libc or glibc support. There is no way to guess how large ''buf'' should be. ----
2 pages link to
sysfs(2)
:
Man2s
syscalls(2)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.