dm_bio_integrity_rewind(9)
π« dm_bio_integrity_rewind(9) β the Kernel API Manual page you didn't know you needed
okay so bestie, we're in the <pink>Kernel API Manual</pink> today and the star of the show is dm_bio_integrity_rewind β say that five times fast, i dare you π it's literally the little function that could, and honestly? iconic.
β¨ NAME β¨
dm_bio_integrity_rewind β rewind integrity vector π that's it, that's the whole vibe check
πΈ SYNOPSIS πΈ
void dm_bio_integrity_rewind (struct bio *bio , unsigned int bytes_done
);
no cap, that's the whole signature β she takes a bio and a bytes_done and returns void, meaning she gives you nothing back and expects you to be fine with it π
(she's not being rude, she's just updating state in place, iykyk).
π ARGUMENTS π
bioβ thebiowhose integrity vector we're updating π¦ this is the main character right here, the one getting her integrity vector gently rewound.bytes_doneβ the number of data bytes to rewind π’ yes it's anunsigned int, no you cannot pass your feelings instead.
π₯ DESCRIPTION π₯
okay so here's the tea β β this function does the math for you: it figures out how many integrity bytes the number of completed data bytes correspond to, and then it rewinds the integrity vector accordingly πβ¨
so like, data bytes β integrity bytes β rewind. that's the pipeline. she calculates, she rewinds, she leaves. no drama, no notes, periodt π
π«Ά SEE ALSO π«Ά
- Kernel file
./drivers/md/dm-io-rewind.c dm_bio_rewind(9)β her sibling!! go say hi π§
fr fr, if you're digging around in dm-io-rewind.c this is your girl π
bye bestie, mwah π β this lil page comes to you from ./drivers/md, dated October 2026, and it's giving Kernel API Manual energy all day long ππ¦
π¦ 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