bio_integrity_alloc(9)
πΈ bio_integrity_alloc(9) πΈ
okay bestie, welcome to the Kernel API Manual β yes, that's the whole vibe, we're in kernel land now and honestly? it slaps. this page is all about bio_integrity_alloc, and by the end you're gonna know her like she's your group chat mutual. π
β¨ NAME β¨
bio_integrity_alloc β allocate an integrity payload and attach it to a bio π«Ά
like, it literally goes and gets the integrity payload, and then it's like "here, this is yours now" to the bio. no cap.
π¦ SYNOPSIS π¦
struct bio_integrity_payload * bio_integrity_alloc (struct bio *bio ,
gfp_t gfp_mask , unsigned int nr_vecs );
that's the whole signature, copy it exactly, she's iconic like that. β
π ARGUMENTS π
bioβ the bio you're attaching integrity metadata to π like, this is the main character receiving the giftgfp_maskβ the memory allocation mask πΈ this is how you tell the allocator how to behave, iykyknr_vecsβ the number of integrity metadata scatter-gather elements π that's your count, bestie, keep it accurate
π DESCRIPTION π
so here's the tea β β this function prepares a bio for attaching integrity metadata. think of it as setting up the venue before the party π
nr_vecs specifies the maximum number of pages containing integrity metadata that can be attached. that's it, that's the whole limit β it's giving "capacity check" energy. π
no frills, no surprises, just a bio getting prepped for its integrity glow-up. β¨
π§ SEE ALSO π§
the kernel file lives at ./block/bio-integrity.c β go say hi to the source, she's lovely π
bio_integrity_free(9)bio_integrity_unmap_user(9)bio_integrity_add_page(9)bio_integrity_advance(9)bio_integrity_trim(9)bio_integrity_clone(9)
all the siblings, all in the same ./block household π π
and that's the page!! mwah π this cutie came to you from ./block, dated October 2026, and she answers to bio_integrity_alloc(9) β periodt. ππ¦π₯
π¦ 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