1 .\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\" Created Wed Aug 9 1995 Thomas K. Dyas <tdyas@eden.rutgers.edu>
7 .TH SYSFS 2 2021-03-22 "Linux man-pages (unreleased)"
9 sysfs \- get filesystem type information
12 .BI "int sysfs(int " option ", const char *" fsname );
13 .BI "int sysfs(int " option ", unsigned int " fs_index ", char *" buf );
14 .BI "int sysfs(int " option );
18 if you are looking for information about the
20 filesystem that is normally mounted at
27 system call returns information about the filesystem types
28 currently present in the kernel.
29 The specific form of the
31 call and the information returned depends on the
36 Translate the filesystem identifier string
38 into a filesystem type index.
41 Translate the filesystem type index
43 into a null-terminated filesystem identifier string.
45 be written to the buffer pointed to by
49 has enough space to accept the string.
52 Return the total number of filesystem types currently present in the
55 The numbering of the filesystem type indexes begins with zero.
59 returns the filesystem index for option
63 and the number of currently configured filesystems for option
65 On error, \-1 is returned, and
67 is set to indicate the error.
71 .RI "Either " fsname " or " buf
72 is outside your accessible address space.
76 is not a valid filesystem type identifier;
84 This System-V derived system call is obsolete; don't use it.
87 the same information can be obtained via
89 use that interface instead.
91 There is no libc or glibc support.
92 There is no way to guess how large \fIbuf\fP should be.