1 .\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Created Wed Aug 9 1995 Thomas K. Dyas <tdyas@eden.rutgers.edu>
27 .TH SYSFS 2 2021-03-22 "Linux" "Linux Programmer's Manual"
29 sysfs \- get filesystem type information
32 .BI "int sysfs(int " option ", const char *" fsname );
33 .BI "int sysfs(int " option ", unsigned int " fs_index ", char *" buf );
34 .BI "int sysfs(int " option );
38 if you are looking for information about the
40 filesystem that is normally mounted at
47 system call returns information about the filesystem types
48 currently present in the kernel.
49 The specific form of the
51 call and the information returned depends on the
56 Translate the filesystem identifier string
58 into a filesystem type index.
61 Translate the filesystem type index
63 into a null-terminated filesystem identifier string.
65 be written to the buffer pointed to by
69 has enough space to accept the string.
72 Return the total number of filesystem types currently present in the
75 The numbering of the filesystem type indexes begins with zero.
79 returns the filesystem index for option
83 and the number of currently configured filesystems for option
85 On error, \-1 is returned, and
87 is set to indicate the error.
91 .RI "Either " fsname " or " buf
92 is outside your accessible address space.
96 is not a valid filesystem type identifier;
104 This System-V derived system call is obsolete; don't use it.
107 the same information can be obtained via
109 use that interface instead.
111 There is no libc or glibc support.
112 There is no way to guess how large \fIbuf\fP should be.