File: bdflush.2

package info (click to toggle)
manpages 6.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,184 kB
  • sloc: sh: 575; python: 222; perl: 190; makefile: 29; lisp: 22
file content (48 lines) | stat: -rw-r--r-- 1,133 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.\" Copyright, the authors of the Linux man-pages project
.\"
.\" SPDX-License-Identifier: GPL-2.0-or-later
.\"
.TH bdflush 2 2025-05-17 "Linux man-pages (unreleased)"
.SH NAME
bdflush \- start, flush, or tune buffer-dirty-flush daemon
.SH SYNOPSIS
.nf
.B #include <sys/kdaemon.h>
.P
.BI "int bdflush(int " func ", long " data );
.fi
.SH DESCRIPTION
This system call used to turn the calling process into the
.I bdflush
daemon,
or tune it,
or flush the "old buffers".
It then progressively lost all of that functionality.
.P
See
.I fs/buffer.c
in the kernel version you're interested in to see what it actually does there.
.SH ERRORS
.B ENOSYS
(this system call is unimplemented)
.SH STANDARDS
Linux.
.SH HISTORY
This system call was introduced in Linux 1.1.3,
became effectively obsolete in Linux 1.3.50,
mostly useless in Linux 2.3.23,
entirely useless in Linux 2.5.12,
officially deprecated in Linux 2.5.52,
and removed outright in Linux 5.15.
.P
Sometimes, if
.I func
was even,
.I data
actually represented a pointer.
.P
The header and prototype were removed in glibc 2.23.
.SH SEE ALSO
.BR sync (1),
.BR fsync (2),
.BR sync (2)