end_buffer_read_sync(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🧚:


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