Imported tab->space correction by redhat
[infodrom/manpages-de] / man2 / sysfs.2
1 .\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
2 .\"
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.
6 .\"
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
11 .\" 
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
18 .\" professionally.
19 .\" 
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" Created Wed Aug  9 1995 by  Thomas K. Dyas <tdyas@eden.rutgers.edu>
24 .\"
25 .\" Translated into german by Markus Schmitt (fw@math.uni-sb.de)
26 .\"
27 .TH SYSFS 2  "2. Juni 1996" "Linux 1.3.16" "Systemaufrufe"
28 .SH BEZEICHNUNG
29 sysfs - liefert Informationen über das Dateisystem
30 .SH "ÜBERSICHT"
31 .nf
32 .BI "int sysfs(int " option ", const char * " fsname );
33
34 .BI "int sysfs(int " option ", unsigned int " fs_index ", char * " buf );
35
36 .BI "int sysfs(int " option );
37 .fi
38 .SH BESCHREIBUNG
39 Die Funktion
40 .B sysfs
41 liefert Informationen über die Dateisysteme, die zurzeit vom Kernel
42 benutzt werden.  Die Form des Aufrufs
43 und die Form der zurückgelieferten Information wird mit dem Parameter
44 .I option
45 festgelegt:
46 .TP
47 .B 1
48 Die Beschreibung des Dateisystems
49 .I fsinfo
50 wird in die interne Nummer des Dateisystems konvertiert.
51 .TP
52 .B 2
53 Die interne Nummer des Dateisystems
54 .I fs_index
55 wird in eine Beschreibung des Dateisystems konvertiert und mit `\e0'
56 beendet.  Die Beschreibung wird in den durch
57 .I buf
58 angegebenen Speicherbereich kopiert.  Warnung: 
59 .I buf
60 muss groß genug sein, um die Beschreibung aufnehmen zu können.
61 .TP
62 .B 3
63 Liefert die Anzahl aller Dateisysteme zurück, die der Kernel 
64 momentan benutzt.
65 .PP
66 Die Nummerierung der Dateisysteme beginnt mit Null.
67 .SH "RÜCKGABEWERT"
68 Bei Erfolg liefert der Aufruf für
69 .I option
70 gleich 1 die Nummer des Dateisystems,
71 für
72 .I option
73 gleich 2 eine Null und für
74 .I option
75 gleich 3 die Anzahl der aktuell
76 konfigurierten Dateisysteme.
77 Bei einem fehlerhaften Aufruf liefert die Funktion \-1 zurück und
78 setzt
79 .I errno
80 entsprechend.
81 .SH FEHLER
82 .TP
83 .B EINVAL
84 .I fsname
85 ist keine korrekte Beschreibung eines Dateisystems;
86 .I fs_index
87 liegt außerhalb des gültigen Bereiches;
88 .I option
89 ist fehlerhaft
90 .TP
91 .B EFAULT
92 .IR fsname " oder " buf
93 liegt außerhalb des Adressraums.
94 .PP
95 .SH "KONFORM ZU"
96 System V
97