disk_set_ind...ccess_ranges(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to
  • iars β€” 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 iars is NULL, then the independent access ranges structure that's already set gets cleared. bye bestie πŸ‘‹
  • if there are no differences between iars and the independent access ranges structure that's already set, then iars gets 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 πŸ”₯


πŸŽ€ 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