bh_end_write(9)
π bh_end_write(9) β the Kernel API Manual, bestie edition π
okay so real talk, this is a page from the Kernel API Manual and it's about bh_end_write, the I/O end handler for writes. yes it's short. no we're not skipping anything. let's go β¨
πΈ NAME πΈ
bh_end_write β the I/O end handler for writes, periodt π
π¦ SYNOPSIS π¦
void bh_end_write (struct bio *bio );
that's it. that's the whole signature. she's giving minimalist icon π
β¨ ARGUMENTS β¨
bioβ thebiothat's being completed. that's the one, that's the whole vibe check π«Ά
π DESCRIPTION π
okay so here's the tea β β you pass this function to bh_submit if you're writing from the buffer, unless you need your own special I/O end handler. like, if you've got custom end-handler energy, go off, do your own thing, main character behavior only π but if you don't? this is the one. she handles the end of your write for you, no cap π
π SEE ALSO π
the whole friend group, in the order the page gives them, and yes i'm listing every single one because we don't do half-finished here π
Kernel file ./fs/buffer.c:
bio_endio_bh(9)end_buffer_read_sync(9)bh_end_read(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)
like, the whole squad showed up to the function-call party π iykyk π§
ngl this one's a short read, bestie β but that just means there's no excuse not to remember it π
and that's the page!! π brought to you by the ./fs corner of the kernel, dated October 2026, and it's literally giving licensed-manual-page realness β go read the other ones too, mwah ππβ
π¦ 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