OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man2 / bdflush.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (c) 1995 Michael Chastain (mec@shell.portal.com), 15 April 1995.
4 .\"
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\"
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
14 .\"
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 .\" GNU General Public License for more details.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, write to the Free
22 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
23 .\" USA.
24 .\"
25 .\" Modified 1997-01-31 by Eric S. Raymond <esr@thyrsus.com>
26 .\" Modified 2004-06-17 by Michael Kerrisk <mtk.manpages@gmail.com>
27 .\"
28 .\"
29 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
30 .\"         all rights reserved.
31 .\" Translated Sat Feb 22 20:03:58 JST 1997
32 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
33 .\" Updated & Modified Thu Feb  3 03:15:15 JST 2005
34 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
35 .\"
36 .\"WORD:        buffer-dirty-flush      ¥Ð¥Ã¥Õ¥¡¡¼¡¦¥À¡¼¥Æ¥£¡¼¡¦¥Õ¥é¥Ã¥·¥å
37 .\"WORD:        daemon                  ¥Ç¡¼¥â¥ó
38 .\"WORD:        flush                   ¥Õ¥é¥Ã¥·¥å
39 .\"WORD:        tune                    Ä´À°
40 .\"WORD:        long word               ¥í¥ó¥°¡¦¥ï¡¼¥É
41 .\"WORD:        parameter               ¥Ñ¥é¥á¡¼¥¿¡¼
42 .\"WORD:        source file             ¥½¡¼¥¹¡¦¥Õ¥¡¥¤¥ë
43 .\"
44 .TH BDFLUSH 2 2004-06-17 "Linux" "Linux Programmer's Manual"
45 .SH Ì¾Á°
46 bdflush \- ¥Ð¥Ã¥Õ¥¡¡¼¡¦¥À¡¼¥Æ¥£¡¼¡¦¥Õ¥é¥Ã¥·¥å¡¦¥Ç¡¼¥â¥ó¤òµ¯Æ°¡¢¥Õ¥é¥Ã¥·¥å¡¢Ä´À°¤¹¤ë
47 .SH ½ñ¼°
48 .nf
49 .B #include <sys/kdaemon.h>
50
51 .BI "int bdflush(int "  func ", long *" address );
52 .BI "int bdflush(int "  func ", long " data );
53 .fi
54 .SH ÀâÌÀ
55 .BR bdflush ()
56 ¤Ï¥Ð¥Ã¥Õ¥¡¡¼¡¦¥À¡¼¥Æ¥£¡¼¡¦¥Õ¥é¥Ã¥·¥å (buffer-dirty-flush)¡¦
57 ¥Ç¡¼¥â¥ó (daemon) ¤òµ¯Æ°¡¢¥Õ¥é¥Ã¥·¥å (flush)¡¢Ä´À° (tune) ¤¹¤ë¡£
58 .RB ( CAP_SYS_ADMIN
59 ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£ (capability) ¤ò»ý¤Ä) Æø¢¥×¥í¥»¥¹¤Î¤ß¤¬
60 .BR bdflush ()
61 ¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤¬¤Ç¤­¤ë¡£
62 .PP
63 .I func
64 ¤¬É餫 0 ¤Ç¥Ç¡¼¥â¥ó¤¬µ¯Æ°¤µ¤ì¤Æ¤¤¤Ê¤ì¤Ð¡¢
65 .BR bdflush ()
66 ¤Ï¥Ç¡¼¥â¥ó¤Î¥³¡¼¥É¤ØÆþ¤ê¡¢Ìá¤Ã¤Æ¤³¤Ê¤¤¡£
67 .PP
68 .I func
69 ¤¬ 1 ¤Ê¤é¤Ð¡¢
70 ±ø¤ì¤¿ (dirty) ¥Ð¥Ã¥Õ¥¡¡¼¤¬¥Ç¥£¥¹¥¯¤Ø¤È½ñ¤­¹þ¤Þ¤ì¤ë¡£
71 .PP
72 .I func
73 ¤¬ 2 °Ê¾å¤Ç¶ö¿ô (ºÇ¾®¥Ó¥Ã¥È¤¬ 0) ¤Ê¤é¤Ð¡¢
74 .I address
75 ¤Ë¥í¥ó¥°¡¦¥ï¡¼¥É¤Ç¥¢¥É¥ì¥¹¤ò»ØÄꤷ¡¢¤½¤Î¥¢¥É¥ì¥¹¤Ë
76 .RI "(" "func" "\-2)/2" 
77 ¤Ç»ØÄꤵ¤ì¤¿Ä´Àá¥Ñ¥é¥á¡¼¥¿¡¼¤¬ÊÖ¤µ¤ì¤ë¡£
78 .PP
79 .I func
80 ¤¬ 3 °Ê¾å¤Ç´ñ¿ô (ºÇ¾®¥Ó¥Ã¥È¤¬ 1) ¤Ê¤é¤Ð¡¢
81 .I data
82 ¤ò¥í¥ó¥°¡¦¥ï¡¼¥É¤Ç»ØÄꤷ¡¢¤½¤ÎÃͤò
83 .RI "(" "func" "\-3)/2"
84 ¤Ç»ØÄꤵ¤ì¤¿Ä´Àá¥Ñ¥é¥á¡¼¥¿¡¼¤ËÀßÄꤹ¤ë¡£
85 .PP
86 ¥Ñ¥é¥á¡¼¥¿¡¼¤Î½¸¹ç¤ä¤½¤ÎÃÍ¡¢Í­¸ú¤ÊÈϰϤϥ«¡¼¥Í¥ë¤Î¥½¡¼¥¹¡¦¥Õ¥¡¥¤¥ë¤Î
87 .I fs/buffer.c 
88 ¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
89 .SH ÊÖ¤êÃÍ
90 .I func
91 ¤¬É餫 0 ¤Ç¡¢¥Ç¥â¡¼¥ó¤Îµ¯Æ°¤ËÀ®¸ù¤·¤¿¾ì¹ç¤Ï
92 .BR bdflush ()
93 ¤ÏÊ֤äƤ³¤Ê¤¤¡£
94 ¤½¤¦¤Ç¤Ê¤±¤ì¤ÐÀ®¸ù¤·¤¿¾ì¹ç¤Ë¤Ï 0 ¤¬ÊÖ¤µ¤ì¤ë¡£¼ºÇÔ¤·¤¿¾ì¹ç¤Ë¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
95 .I errno
96 ¤Ë¤½¤Î¥¨¥é¡¼¤¬»Ø¼¨¤µ¤ì¤ë¡£
97 .SH ¥¨¥é¡¼
98 .TP
99 .B EBUSY
100 ¾¤Î¥×¥í¥»¥¹¤¬´û¤Ë¥Ç¡¼¥â¥ó¡¦¥³¡¼¥É¤ËÆþ¤Ã¤Æ¤¤¤ë¤Î¤Ë¡¢Æþ¤í¤¦¤È»î¤ß¤¿¡£
101 .TP
102 .B EFAULT
103 .I address
104 ¤¬¥¢¥¯¥»¥¹²Äǽ¤Ê¥¢¥É¥ì¥¹¶õ´Ö¤Î³°Éô¤ò»Ø¤·¤Æ¤¤¤ë¡£
105 .TP
106 .B EINVAL
107 ÉÔÀµ¤Ê¥Ñ¥é¥á¡¼¥¿¡¼¤ÎÆɤ߽ñ¤­¤ò»î¤ß¤¿¤«¡¢¥Ñ¥é¥á¡¼¥¿¡¼¤ØÉÔÀµ¤ÊÃͤò
108 ½ñ¤­¹þ¤â¤¦¤È¤·¤¿¡£
109 .TP
110 .B EPERM
111 ¸Æ¤Ó½Ð¤·¸µ¤Ë
112 .B CAP_SYS_ADMIN
113 ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤¬¤Ê¤¤¡£
114 .SH ½àµò
115 .BR bdflush ()
116 ¤Ï Linux ÆÃÍ­¤Ç¤¢¤ê°Ü¿¢¤ò°Õ¿Þ¤·¤¿¥×¥í¥°¥é¥à¤Ç»ÈÍѤ¹¤Ù¤­¤Ç¤Ï¤Ê¤¤¡£
117 .SH ´ØÏ¢¹àÌÜ
118 .BR fsync (2),
119 .BR sync (2),
120 .BR sync (8),
121 .BR update (8)