bh_submit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bh_submit(9) β€” like, the buffer head I/O starter pack

okay bestie, so this is a kernel API manual page, section 9 (that's the kernel API section, iykyk), and the star of the show is bh_submit. grab a snack, we're doing I/O πŸ’–


✨ NAME ✨

bh_submit β€” start I/O against a buffer head. that's it, that's the vibe πŸ¦‹


✨ SYNOPSIS ✨

void bh_submit (struct buffer_head *bh , blk_opf_t opf , bio_end_io_t
end_io );

like, it returns void, so don't go looking for a return value, there isn't one, periodt πŸ’…


✨ ARGUMENTS ✨

  • bh β€” the buffer head you're doing the I/O on. this is literally the main character of the whole function πŸ‘‘
  • opf β€” the operation and flags for the bio. all the "what are we even doing here" energy lives in this one πŸŽ€
  • end_io β€” the routine that gets called when the I/O has completed. your little callback bestie that shows up once the work is done 🫢

✨ DESCRIPTION ✨

so here's the tea πŸ“ β€” if you need to do I/O on an individual bh, instead of letting the page cache do the I/O on the folio that it's in, then you call this function. that's the whole thing. no cap, that's the entire description, and honestly? iconic. short, sweet, slays πŸ’–

lowkey important: it's bh on its own, not the folio it lives inside. keep that distinction in your head, bestie, it's giving main character energy 🌸

✨ SEE ALSO ✨

all the related lore, straight from the kernel files under ./fs/buffer.c β€” go read these next, they're the friend group 🧚


and that's the page, bestie!! πŸŽ€ this one's from the ./fs corner of the kernel, dated October 2026 β€” so go forth, submit that buffer head I/O, and slay βœ¨πŸ’œπŸ”₯

πŸ“¦ where this page comes from