__bforget(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __bforget β€” Kernel API Manual, section 9 πŸŽ€

okay bestie, gather round, because this one is short but it matters ✨


🌸 NAME 🌸

__bforget β€” literally just "Discard any dirty data in a buffer." that's the whole vibe. bye-bye dirty data, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void __bforget (struct buffer_head *bh );

that's it. one function, one argument, returns void (so like… nothing comes back, it just does the thing and dips) 🫢


πŸ’– ARGUMENTS πŸ’–

  • bh β€” The buffer to forget. that's your main character right there πŸŽ€ the buffer we're about to ghost.

✨ DESCRIPTION ✨

so __bforget is the variant of bforget you can call when bh is guaranteed to not be NULL πŸ”₯ like, you already did your vibe check, you know it's not NULL, so you skip the safety net and go straight to discarding any dirty data in that buffer. slay. efficient. iconic.

ngl the "guaranteed" part is doing a LOT of work in that sentence β€” if you're wrong about bh not being NULL, that's on you, bestie 😭 the page says this variant can be called if that's guaranteed, so keep that promise fr fr πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./fs/buffer.c β€” and honestly the whole friend group shows up here, so let's give them their flowers 🌈


πŸ’€ tiny reminder that this page lives in ./fs, and it's stamped October 2026 β€” so like, it's from the future, which is very main character energy of it. periodt. 🧚

okay that's the whole page, mwah πŸ’œ go forth and forget some dirty buffers responsibly πŸ“

πŸ“¦ where this page comes from