pseudo_lock_minor_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pseudo_lock_minor_get(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual page for pseudo_lock_minor_get(9) β€” yes the title is also the name, we love a self-titled icon ✨


✨ NAME ✨

pseudo_lock_minor_get β€” Obtain available minor number πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int pseudo_lock_minor_get (unsigned int *minor );

like, that's literally it. one function, one pointer, infinite potential πŸ’œ


🌸 ARGUMENTS 🌸

  • minor β€” Pointer to where new minor number will be stored. that's the spot where the shiny new minor number gets dropped off 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

so the way this works: a bitmask is used to track available minor numbers. here, the next free minor number is marked as unavailable and returned. lowkey elegant, highkey iconic πŸ’…

like β€” it's giving "i found a free spot and i'm claiming it," no cap ✨


⭐ RETURN ⭐

  • 0 on success πŸŽ‰
  • <0 on failure 😭

🌈 SEE ALSO 🌈

okay this list is LONG and every single one is here because we don't skip entries in this house πŸ’–

Kernel file ./fs/resctrl/pseudo_lock.c, plus:

go read those too, iykyk πŸ”₯


fr fr bestie, this page lives in ./fs/resctrl and it's dated October 2026 β€” so like, future vibes only πŸ¦‹πŸ’€

k byeee, go get those minor numbers, you're gonna slay πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from