bio_integrity_prep(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the BI_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