end_buffer_read_sync(9)
π end_buffer_read_sync(9) π
okay so bestie, welcome to the Kernel API Manual β yes that's the whole manual name, we're in the big-league kernel docs now π this page is all about end_buffer_read_sync, and ngl it's a short one but it's lowkey iconic for what it does β¨
πΈ NAME πΈ
end_buffer_read_sync β handle buffer reads finishing π¦
β¨ SYNOPSIS β¨
void end_buffer_read_sync (struct buffer_head *bh , int uptodate );
that's the whole signature, no cap π
π ARGUMENTS π
bhβ the buffer. literally the buffer head we're wrapping up π«Άuptodateβ true if the read was successful. that's it, that's the vibe check β
π₯ DESCRIPTION π₯
okay so here's the tea β if a buffer gets read through some mechanism that isn't bh_submit, you can call this function to finish the read π that's the whole job. it's giving cleanup crew, it's giving "i got you" energy, and honestly we're obsessed π
fr fr: it's the finisher for reads that didn't go through bh_submit β nothing more, nothing less, so don't go reading extra powers into it π
π SEE ALSO π
the kernel file ./fs/buffer.c plus this whole friend group π§:
bio_endio_bh(9)bh_end_read(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)
and that's the page bestie π
huge shoutout to ./fs for hosting it, and it's stamped October 2026 β see you in the next buffer, 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