blk_unregister_queue(9)
π blk_unregister_queue(9)
okay so this is a page from the Kernel API Manual, section 9 β the kernel-functions girlies. and bestie, it's a short one, but it's important, so let's get into it β¨
πΈ NAME
blk_unregister_queue β literally the counterpart of blk_register_queue(). that's it. that's the whole vibe. one in, one out, yin and yang, register and unregister, periodt π
π SYNOPSIS
void blk_unregister_queue (struct gendisk *disk );
no cap, that's the whole signature. copy it exactly, don't get cute with it π
π¦ ARGUMENTS
diskβ thestruct gendisk *for the disk whose request queue you want unregistered from sysfs. like, you're telling sysfs "she's leaving the group chat" πβ¨
β NOTE
read this twice, bestie: the caller is responsible for guaranteeing that this function is called after blk_register_queue has finished. so like... don't call it early. don't call it mid-register. the caller has to make sure the ordering is correct, and if you get it wrong that's on you, not on this function ππ
it's giving "you had one job" energy but fr fr, it matters.
π SEE ALSO
- Kernel file
./block/blk-sysfs.cβ go read it, iykyk π₯ blk_register_queue(9)β the counterpart, the other half, the main character to this one's love interest π«Ά
so yeah, that's the whole page π she's short, she's sweet, she unregisters a request queue from sysfs, and she expects you to have called blk_register_queue first. iconic behaviour, honestly ππ
sign-off time π β this little cutie lives in the kernel source at ./block, it's dated October 2026, and it's brought to you by the Kernel API Manual, section 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