bio_integrity_prep(9)
π bio_integrity_prep(9) β Kernel API Manual π
okay so bestie, welcome to the Kernel API Manual page for bio_integrity_prep(9) β¨ this one is lowkey a little function with one job and she does it fine, no cap.
πΈ NAME πΈ
bio_integrity_prep β prepare a bio for integrity I/O π
β¨ SYNOPSIS β¨
void bio_integrity_prep (struct bio *bio , unsigned int action );
likeβ¦ that's the whole signature. she's compact, she's iconic, she's giving "small function, big responsibilities" π
π¦ ARGUMENTS π¦
bioβ the bio you're prepping, bestie. this is the one getting the glow-up πactionβ the preparation action that's needed, from theBI_ACT_*family π (iykyk which one you need)
π DESCRIPTION π
so first thing she does is allocate the integrity payload β¨ that's the whole main character move.
then it splits by direction, and honestly the way she handles both is so considerate:
- for writes, she generates the integrity metadata π₯
- for reads, she sets up the completion handler so the metadata can be verified later β
and the big thing to know β the vibe check, if you will β is that this is used for bios that do not have user integrity payloads attached π like, if you already brought your own payload, this isn't for you, she's handling the other cases.
ngl, don't sleep on that last sentence. it's the whole scope of the function. bios without user integrity payloads attached. periodt. π
π§ SEE ALSO π§
- Kernel file
./block/bio-integrity-auto.cβ go read her, she's right there π __bio_integrity_endio(9)β the endio counterpart, absolutely worth a look π«Ά
and that's the page!! sign-off time: this lil beauty lives under ./block, dated October 2026, and the page itself is bio_integrity_prep(9) π go forth and prep those bios, bestie, you're gonna slay πππ¦
π¦ 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