1 .\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Created Wed Aug 9 1995 Thomas K. Dyas <tdyas@eden.rutgers.edu>
25 .TH SYSFS 2 1995-08-09 "Linux" "Linux Programmer's Manual"
27 sysfs \- get file system type information
29 .BI "int sysfs(int " option ", const char *" fsname );
31 .BI "int sysfs(int " option ", unsigned int " fs_index ", char *" buf );
33 .BI "int sysfs(int " option );
36 returns information about the file system types currently present in
38 The specific form of the
40 call and the information returned depends on the
45 Translate the file-system identifier string
47 into a file-system type index.
50 Translate the file-system type index
52 into a null-terminated file-system identifier string.
54 be written to the buffer pointed to by
58 has enough space to accept the string.
61 Return the total number of file system types currently present in the
64 The numbering of the file-system type indexes begins with zero.
68 returns the file-system index for option
72 and the number of currently configured file systems for option
74 On error, \-1 is returned, and
80 .RI "Either " fsname " or " buf
81 is outside your accessible address space.
85 is not a valid file-system type identifier;
95 file system mounted on
97 the same information can be derived from
98 .IR /proc/filesystems .
100 There is no libc or glibc support.
101 There is no way to guess how large \fIbuf\fP should be.