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 2010-06-27 "Linux" "Linux Programmer's Manual"
29 sysfs \- get filesystem type information
31 .BI "int sysfs(int " option ", const char *" fsname );
33 .BI "int sysfs(int " option ", unsigned int " fs_index ", char *" buf );
35 .BI "int sysfs(int " option );
38 returns information about the filesystem types currently present in
40 The specific form of the
42 call and the information returned depends on the
47 Translate the filesystem identifier string
49 into a filesystem type index.
52 Translate the filesystem type index
54 into a null-terminated filesystem identifier string.
56 be written to the buffer pointed to by
60 has enough space to accept the string.
63 Return the total number of filesystem types currently present in the
66 The numbering of the filesystem type indexes begins with zero.
70 returns the filesystem index for option
74 and the number of currently configured filesystems for option
76 On error, \-1 is returned, and
82 .RI "Either " fsname " or " buf
83 is outside your accessible address space.
87 is not a valid filesystem type identifier;
95 This System-V derived system call is obsolete; don't use it.
98 the same information can be obtained via
99 .IR /proc/filesystems ;
100 use that interface instead.
102 There is no libc or glibc support.
103 There is no way to guess how large \fIbuf\fP should be.