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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms