bio_integrity_advance(9)
π 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β thebiowhose 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:
bio_integrity_free(9)bio_integrity_alloc(9)bio_integrity_unmap_user(9)bio_integrity_add_page(9)bio_integrity_trim(9)bio_integrity_clone(9)
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
- 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