bio_integrity_advance(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– bio_integrity_advance πŸ’–

okay so bestie, welcome to the Kernel API Manual, section 9, and today's main character is bio_integrity_advance β€” she's giving "quiet little helper function that keeps your integrity vector from falling behind" and honestly? we stan πŸŽ€


✨ NAME ✨

bio_integrity_advance β€” advance the integrity vector, that's the whole vibe πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void bio_integrity_advance (struct bio *bio , unsigned int bytes_done );

like, that's the whole signature. no return value, she just does the thing and leaves. periodt ✨


🌸 ARGUMENTS 🌸

  • bio β€” the bio whose integrity vector we're updating. she's the one getting her vector nudged forward, okay? 🫢
  • bytes_done β€” the number of data bytes that have been completed. yes, data bytes, not integrity bytes β€” the function does that math for you, don't worry your pretty little head 😌

πŸ’œ DESCRIPTION πŸ’œ

okay so here's what she does, and it's lowkey iconic:

this function calculates how many integrity bytes the number of completed data bytes corresponds to, and then advances the integrity vector accordingly. that's it. that's the whole function. she converts your data-byte progress into integrity-byte progress and slides the vector forward by that much πŸ”₯

no cap, it's a converter and a mover. multitasking queen πŸ‘‘


πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./block/bio-integrity.c β€” the whole friend group lives there, go say hi:


ngl this page is living out of ./block, and she's dated October 2026 β€” so if you're reading this, hi from the future bestie πŸ’€πŸŒΈ

and that's the whole page!! bio_integrity_advance(9) from the Kernel API Manual, straight out of ./block, October 2026 β€” mwah, love u, go read the source πŸ’–πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from