dm_bio_integrity_rewind(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« 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 β€” the bio whose 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 an unsigned 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