blk_alloc_disk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

blk_alloc_disk β€” allocate a gendisk structure. Welcome to the Kernel API Manual, bestie β€” this is blk_alloc_disk(9), and it's lowkey iconic. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

blk_alloc_disk (lim , node_id );

🌸 ARGUMENTS 🌸

  • lim β€” the queue limits to be used for this disk. That's the vibe check for the queue, basically.
  • node_id β€” the numa node to allocate on. Gotta pick where it lives, fr fr.

πŸ¦‹ DESCRIPTION πŸ¦‹

Allocate and pre-initialize a gendisk structure for use with BIO based drivers. It's giving "set it up before the main character energy kicks in." ✨

Returns an ERR_PTR on error, else the allocated disk. So bestie, check for that ERR_PTR β€” no cap. 🫢

😴 CONTEXT 😴

can sleep

That's the whole context note: can sleep. Let it nap, okay? 😭

πŸ”₯ SEE ALSO πŸ”₯


Source/version: ./include/linux Β· Date: October 2026 Β· blk_alloc_disk(9) β€” mwah, that's the page, bestie. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from