SYSFS (2)
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
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
|
|