bio_integrity_intervals(9)
Hey bestie π welcome to bio_integrity_intervals(9) from the Kernel API Manual β this is the little kernel function that does a unit conversion and honestly? it ate. β¨
πΈ NAME πΈ
bio_integrity_intervals β Return number of integrity intervals for a bio. That's the whole assignment, no cap. π
β¨ SYNOPSIS β¨
unsigned int bio_integrity_intervals (struct blk_integrity *bi ,
unsigned int sectors );
π ARGUMENTS π
biβblk_integrityprofile for device. Like, the profile that belongs to the device, bestie. π«Άsectorsβ Size of the bio in 512-byte sectors. Actual 512-byte sectors, not vibes. π
π¦ DESCRIPTION π¦
Okay so here's the situation: the block layer calculates everything in 512 byte sectors, but integrity metadata is done in terms of the data integrity interval size of the storage device. Different units, same main character energy. π
This function does the translation β it converts the block layer sectors to the appropriate number of integrity intervals. It's giving "math but make it kernel," and it's iconic. π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/blk-integrity.hβ go read the header, iykyk. πβ¨
Signed off with love from the source/version ./include/linux, dated October 2026, and this was bio_integrity_intervals(9) β mwah π
π¦ 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