disk_set_ind...ccess_ranges(9)
π disk_set_ind...ccess_ranges(9) β from the Kernel API Manual, bestie β¨
okay so real talk, this is a function from the Kernel API Manual and it's about telling a disk which parts of it are, like, independently accessible. yes bestie, disks have β¨zonesβ¨ now. let's get into it π
πΈ NAME πΈ
disk_set_independent_access_ranges β set a disk's independent access ranges π«
β¨ SYNOPSIS β¨
void disk_set_independent_access_ranges (struct gendisk *disk , struct
blk_independent_access_ranges *iars );
like, that's the whole signature, no cap π«Ά
π¦ ARGUMENTS π¦
diskβ the target disk</> π― you know, the one we're doing this toiarsβ the independent access ranges structure</> π the actual data we're handing over
π DESCRIPTION π
So what this does: it sets the independent access ranges info on the request queue of disk to whatever iars is. icon behaviour, honestly π
now the β¨special casesβ¨, and pls pay attention because these matter:
- if
iarsisNULL, then the independent access ranges structure that's already set gets cleared. bye bestie π - if there are no differences between
iarsand the independent access ranges structure that's already set, theniarsgets freed π«§ β like, thanks for nothing but also we're cleaning up after you
no notes, it's giving efficient π
lowkey important: that last one means you don't get to keep using iars after this call if it was identical to what's already there. the function ate it. π
π₯ SEE ALSO π₯
- Kernel file
./block/blk-ia-ranges.cβ go read the source, iykyk π disk_register_independent_access_ranges(9)πdisk_alloc_independent_access_ranges(9)π
π the cute sign-off π
this masterpiece lives in the ./block section of the kernel docs, and it was dated October 2026 β so yeah, it's from the future, slay βπ
that's it, that's the page. go set some access ranges, main character ππ§
π¦ 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