bh_end_read(9)
πΈ bh_end_read(9) πΈ
okay so bestie, welcome to the Kernel API Manual page for bh_end_read β it's giving "small function, big responsibility" energy and honestly? iconic. β¨
π NAME π
bh_end_read β the I/O end handler for reads. literally it's the little guy who shows up when your read is done. π
β¨ SYNOPSIS β¨
void bh_end_read (struct bio *bio );
like, that's the whole signature. no cap, that's it. π
π¦ ARGUMENTS π¦
bioβ thebiothat's being completed. that's the one getting its moment, its main character energy, its "we're so back" arc. π«Ά
πΈ DESCRIPTION πΈ
okay so here's the vibe: you pass this function to bh_submit when you're reading into the buffer. that's it, that's the whole job. π
unless β and this is the lowkey important part β you need your own special I/O end handler. like if you've got custom end-handling needs, go off, do your own thing. but if you're just a normal read-into-the-buffer situation? hand it bh_end_read and slay. β¨
no extra lore, no hidden tricks β this is exactly what the page says and nothing more, bestie. don't invent behaviour, that's not the move. π
π₯ SEE ALSO π₯
the whole friend group, in their original order, no one left out (and yes i mean everyone):
bio_endio_bh(9)end_buffer_read_sync(9)bh_end_write(9)bh_end_async_write(9)mmb_sync(9)block_dirty_folio(9)mark_buffer_dirty(9)__brelse(9)__bforget(9)bh_submit(9)bdev_getblk(9)__bread_gfp(9)block_invalidate_folio(9)clean_bdev_aliases(9)try_to_free_buffers(9)bh_uptodate_or_lock(9)__bh_read(9)__bh_read_batch(9)
also they all live in the kernel file ./fs/buffer.c β squad location confirmed. πΊοΈπ
and that's the page!! π¦ mwah π go read your buffers, you gorgeous kernel dev.
sign-off szn: this one's from ./fs, dated October 2026 β remember it fondly, bestie. πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms