.\"
.TH SYSFS 2 2010-06-27 "Linux" "Linux Programmer's Manual"
.SH NAME
-sysfs \- get file system type information
+sysfs \- get filesystem type information
.SH SYNOPSIS
.BI "int sysfs(int " option ", const char *" fsname );
.BI "int sysfs(int " option );
.SH DESCRIPTION
.BR sysfs ()
-returns information about the file system types currently present in
+returns information about the filesystem types currently present in
the kernel.
The specific form of the
.BR sysfs ()
in effect:
.TP 3
.B 1
-Translate the file-system identifier string
+Translate the filesystem identifier string
.I fsname
-into a file-system type index.
+into a filesystem type index.
.TP
.B 2
-Translate the file-system type index
+Translate the filesystem type index
.I fs_index
-into a null-terminated file-system identifier string.
+into a null-terminated filesystem identifier string.
This string will
be written to the buffer pointed to by
.IR buf .
has enough space to accept the string.
.TP
.B 3
-Return the total number of file system types currently present in the
+Return the total number of filesystem types currently present in the
kernel.
.PP
-The numbering of the file-system type indexes begins with zero.
+The numbering of the filesystem type indexes begins with zero.
.SH RETURN VALUE
On success,
.BR sysfs ()
-returns the file-system index for option
+returns the filesystem index for option
.BR 1 ,
zero for option
.BR 2 ,
-and the number of currently configured file systems for option
+and the number of currently configured filesystems for option
.BR 3 .
On error, \-1 is returned, and
.I errno
.TP
.B EINVAL
.I fsname
-is not a valid file-system type identifier;
+is not a valid filesystem type identifier;
.I fs_index
is out-of-bounds;
.I option