| 1 |
.\" Copyright 1995, Michael Chastain <[email protected]> |
| 2 |
.\" Copyright, the authors of the Linux man-pages project |
| 3 |
.\" |
| 4 |
.\" SPDX-License-Identifier: GPL-2.0-or-later |
| 5 |
.\" |
| 6 |
.TH bdflush 2 2026-02-08 "Linux man-pages 6.18" |
| 7 |
.SH NAME |
| 8 |
bdflush \- start, flush, or tune buffer-dirty-flush daemon |
| 9 |
.SH SYNOPSIS |
| 10 |
.nf |
| 11 |
.B #include <sys/kdaemon.h> |
| 12 |
.P |
| 13 |
.BI "int bdflush(int " func ", long " data ); |
| 14 |
.fi |
| 15 |
.SH DESCRIPTION |
| 16 |
This system call used to turn the calling process into the |
| 17 |
.I bdflush |
| 18 |
daemon, |
| 19 |
or tune it, |
| 20 |
or flush the "old buffers". |
| 21 |
It then progressively lost all of that functionality. |
| 22 |
.P |
| 23 |
See |
| 24 |
.I fs/buffer.c |
| 25 |
in the kernel version you're interested in to see what it actually does there. |
| 26 |
.SH ERRORS |
| 27 |
.B ENOSYS |
| 28 |
(this system call is unimplemented) |
| 29 |
.SH STANDARDS |
| 30 |
Linux. |
| 31 |
.SH HISTORY |
| 32 |
This system call was introduced in Linux 1.1.3, |
| 33 |
became effectively obsolete in Linux 1.3.50, |
| 34 |
mostly useless in Linux 2.3.23, |
| 35 |
entirely useless in Linux 2.5.12, |
| 36 |
officially deprecated in Linux 2.5.52, |
| 37 |
and removed outright in Linux 5.15. |
| 38 |
.P |
| 39 |
Sometimes, if |
| 40 |
.I func |
| 41 |
was even, |
| 42 |
.I data |
| 43 |
actually represented a pointer. |
| 44 |
.P |
| 45 |
The header and prototype were removed in glibc 2.23. |
| 46 |
.SH SEE ALSO |
| 47 |
.BR sync (1), |
| 48 |
.BR fsync (2), |
| 49 |
.BR sync (2) |