Rev | Author | # | Line |
---|---|---|---|
1 | perry | 1 | BDFLUSH |
2 | !!!BDFLUSH | ||
2 | PerryLorier | 3 | |
1 | perry | 4 | ---- |
5 | !!NAME | ||
6 | |||
7 | |||
8 | bdflush - start, flush, or tune buffer-dirty-flush daemon | ||
9 | !!SYNOPSIS | ||
10 | |||
2 | PerryLorier | 11 | __int bdflush(int__ ''func,'' __long *__''address); |
12 | ''__int bdflush(int__ ''func,'' __long__ ''data);'' | ||
1 | perry | 13 | !!DESCRIPTION |
14 | |||
15 | |||
16 | __bdflush__ starts, flushes, or tunes the | ||
17 | buffer-dirty-flush daemon. Only the super-user may call | ||
18 | __bdflush__. | ||
19 | |||
20 | |||
21 | If ''func'' is negative or 0, and no daemon has been | ||
22 | started, then __bdflush__ enters the daemon code and | ||
23 | never returns. | ||
24 | |||
25 | |||
26 | If ''func'' is 1, some dirty buffers are written to | ||
27 | disk. | ||
28 | |||
29 | |||
30 | If ''func'' is 2 or more and is even (low bit is 0), then | ||
31 | ''address'' is the address of a long word, and the tuning | ||
32 | parameter numbered (''func''-2)/2 is returned to the | ||
33 | caller in that address. | ||
34 | |||
35 | |||
36 | If ''func'' is 3 or more and is odd (low bit is 1), then | ||
37 | ''data'' is a long word, and the kernel sets tuning | ||
38 | parameter numbered (''func''-3)/2 to that | ||
39 | value. | ||
40 | |||
41 | |||
42 | The set of parameters, their values, and their legal ranges | ||
43 | are defined in the kernel source file | ||
44 | ''fs/buffer.c''. | ||
45 | !!RETURN VALUE | ||
46 | |||
47 | |||
48 | If ''func'' is negative or 0 and the daemon successfully | ||
49 | starts, __bdflush__ never returns. Otherwise, the return | ||
50 | value is 0 on success and -1 on failure, with ''errno'' | ||
51 | set to indicate the error. | ||
52 | !!ERRORS | ||
53 | |||
54 | |||
2 | PerryLorier | 55 | ;[EPERM]: Caller is not super-user. |
56 | ;[EFAULT]: ''address'' points outside your accessible address space. | ||
57 | ;[EBUSY]: An attempt was made to enter the daemon code after another process has already entered. | ||
58 | ;[EINVAL]: An attempt was made to read or write an invalid parameter number, or to write an invalid value to a parameter. | ||
1 | perry | 59 | |
60 | !!CONFORMING TO | ||
2 | PerryLorier | 61 | __bdflush__ is Linux specific and should not be used in programs intended to be portable. |
1 | perry | 62 | !!SEE ALSO |
63 | |||
64 | |||
2 | PerryLorier | 65 | fsync(2), sync(2), update(8), sync(8) |
lib/blame.php:177: Warning: Invalid argument supplied for foreach()