OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / release / 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     Thomas K. Dyas <tdyas@eden.rutgers.edu>
24 .\"
25 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
26 .\"         all rights reserved.
27 .\" Translated Tue Mar  4 00:03:08 JST 1997
28 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
29 .\" Updated & Modified Sat Jun  2 20:46:34 JST 2001
30 .\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
31 .\"
32 .\"WORD:        file system             ¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à
33 .\"WORD:        kernel                  ¥«¡¼¥Í¥ë
34 .\"WORD:        identifier string       ¼±ÊÌʸ»úÎó
35 .\"WORD:        type index              ·¿¥¤¥ó¥Ç¥Ã¥¯¥¹
36 .\"
37 .TH SYSFS 2 2010-06-27 "Linux" "Linux Programmer's Manual"
38 .SH Ì¾Á°
39 sysfs \- ¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à (file system) ¤Î¾ðÊó¤ò¼èÆÀ¤¹¤ë
40 .SH ½ñ¼°
41 .BI "int sysfs(int " option ", const char *" fsname );
42
43 .BI "int sysfs(int " option ", unsigned int " fs_index ", char *" buf );
44
45 .BI "int sysfs(int " option );
46 .SH ÀâÌÀ
47 .BR sysfs ()
48 ¤Ï¸½ºß¥«¡¼¥Í¥ë (kernel) ¤Ë¸ºß¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤Î·¿ (type) ¾ðÊó¤òÊÖ¤¹¡£
49 ¤½¤ì¤¾¤ì¤Î
50 .BR sysfs ()
51 ¥³¡¼¥ë¤Î·Á¼°¤ÈÊÖ¤µ¤ì¤ë¾ðÊó¤Ï
52 .I option
53 ¤Ë°Í¸¤·¤Æ¤ª¤ê¡¢¤½¤ì¤Ï:
54 .TP 3
55 .B 1
56 ¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¼±ÊÌʸ»úÎó (identifier string)
57 .I fsname
58 ¤ò¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤Î·¿¥¤¥ó¥Ç¥Ã¥¯¥¹ (type index) ¤ËËÝÌõ¤¹¤ë¡£
59 .TP
60 .B 2
61 ¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤Î·¿¥¤¥ó¥Ç¥Ã¥¯¥¹
62 .I fs_index
63 ¤ò NULL ½ªÃ¼¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¼±ÊÌʸ»úÎó¤ËËÝÌõ¤¹¤ë¡£
64 ¤³¤Îʸ»úÎó¤Ï
65 .I buf
66 ¤Ç»ØÄꤵ¤ì¤¿¥Ð¥Ã¥Õ¥¡¡¼¤Ø½ñ¤­¹þ¤Þ¤ì¤ë¡£
67 .I buf
68 ¤Ëʸ»úÎó¤òÆþ¤ì¤ë¤À¤±¤Î½½Ê¬¤ÊÍÆÎ̤¬¤¢¤ë¤³¤È¤ò³Î¤«¤á¤ë¤³¤È¡£
69 .TP
70 .B 3
71 ¸½ºß¥«¡¼¥Í¥ë¤Ë¸ºß¤¹¤ë¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à·¿¤Î¿ô¤Î¹ç·×¤òÊÖ¤¹¡£
72 .PP
73 ¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤Î·¿¥¤¥ó¥Ç¥Ã¥¯¥¹¤Î¿ô¤Ï¥¼¥í¤«¤é»Ï¤Þ¤ë¡£
74 .SH ÊÖ¤êÃÍ
75 À®¸ù¤·¤¿¾ì¹ç
76 .BR sysfs ()
77 ¤Ï¡¢
78 ¥ª¥×¥·¥ç¥ó
79 .B 1
80 ¤Ç¤Ï
81 ¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤òÊÖ¤¹¡£
82 ¥ª¥×¥·¥ç¥ó
83 .B 2
84 ¤Ç¤Ï¥¼¥í¤òÊÖ¤¹¡£
85 ¥ª¥×¥·¥ç¥ó
86 .B 3
87 ¤Ï¸½ºßÀßÄꤵ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤Î¿ô¤òÊÖ¤¹¡£
88 ¥¨¥é¡¼¤Î¾ì¹ç¤Ï¡¢\-1 ¤¬ÊÖ¤µ¤ì¡¢
89 .I errno
90 ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
91 .SH ¥¨¥é¡¼
92 .TP
93 .B EFAULT
94 .RI  fsname " ¤È " buf
95 ¤Î¤É¤Á¤é¤«¤¬¥¢¥¯¥»¥¹²Äǽ¤Ê¥¢¥É¥ì¥¹¶õ´Ö¤Î³°¤Ë¤¢¤ë¡£
96 .TP
97 .B EINVAL
98 .I fsname
99 ¤¬Àµ¤·¤¤¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤Î·¿¼±Ê̻ҤǤϤʤ¤;
100 .I fs_index
101 ¤¬ÈϰϤγ°¤Ë¤¢¤ë;
102 .I option
103 ¤¬Àµ¤·¤¯¤Ê¤¤¡£
104 .SH ½àµò
105 SVr4.
106 .SH Ãí°Õ
107 ¤³¤Î System-V Í³Íè¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤ÏÇÑ»ßͽÄê (obsolete) ¤Ç¤¢¤ê¡¢
108 »ÈÍѤ·¤Ê¤¤¤³¤È¡£
109 .I /proc
110 ¤¬ÍøÍѤǤ­¤ë¥·¥¹¥Æ¥à¤Ç¤Ï¡¢Æ±¤¸¾ðÊó¤¬
111 .I /proc/filesystems
112 ·Ðͳ¤Ç¼èÆÀ¤Ç¤­¡¢¤³¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»ÈÍѤ¹¤ë¤³¤È¡£
113 .SH ¥Ð¥°
114 libc ¤Þ¤¿¤Ï glibc ¤Î¥µ¥Ý¡¼¥È¤Ï¸ºß¤·¤Ê¤¤¡£
115 \fIbuf\fP ¤ÎÂ礭¤µ¤¬¤É¤ì¤À¤±É¬Íפ«¤ò¿ä¬¤¹¤ëÊýË¡¤¬¤Ê¤¤¡£