bdflush(2)
π bdflush(2) π
okay bestie so we're in the System Calls Manual, section 2, and the star of the show is bdflush β yes that's the whole name, she's lowkey giving sleepy daemon energy and honestly? iconic. πΈ
β¨ NAME β¨
bdflush β start, flush, or tune buffer-dirty-flush daemon π«§
π SYNOPSIS π
#include <sys/kdaemon.h>
int bdflush(int func, long data);
π DESCRIPTION π
okay so back in the day this system call used to do a whole lot: it could turn the calling process into the bdflush daemon, or tune that daemon, or flush the "old buffers". she was booked, busy, employed. π
and then... she progressively lost all of that functionality. not some. all. the way the job just kept getting smaller until there was no job left ππ
so if you wanna know what bdflush actually does on whatever kernel you're snooping on, go read fs/buffer.c in the kernel version you're interested in. that's the real one, fr fr. π
π₯ ERRORS π₯
ENOSYSβ this system call is unimplemented. that's it. that's the whole list. she's not here rn. π
π STANDARDS π
Linux. (just Linux. periodt. π )
π¦ HISTORY π¦
omg okay the lore is genuinely so good, sit down, get a snack π:
- 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 β°οΈ
she really said "I'll see myself out" over the course of like three decades. character development. main character energy fr. π
also, sometimes, if func was even, data actually represented a pointer. π« yeah. just a little chaos. no cap.
and the header and prototype were removed in glibc 2.23, so don't go looking for her there either. π§
π SEE ALSO π
sync(1), fsync(2), sync(2) β the ones who actually showed up for the shift. π«Ά
well bestie, that's the whole page!! this was Linux man-pages 6.20, dated 2026-02-08, and honestly she ate π β¨ if you ever need a syscall that does basically nothing, you know where to find her (spoiler: you don't, she's gone π).
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: GPL-2.0-or-later
- Copyright 1995, Michael Chastain <mec@shell.portal.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms