idr_init_base(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

idr_init_base β€” ok so this one initialises an IDR, bestie, that's literally the whole vibe πŸ’…


✨ SYNOPSIS ✨

void idr_init_base (struct idr *idr , int base );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • idr β€” your IDR handle 🫢 like, the actual thing you're setting up.
  • base β€” the base value for the IDR ⭐ this is the starting number, no cap.

🌸 DESCRIPTION 🌸

So this is the ✨variation✨ of idr_init β€” and the one thing that makes it different (main character energy fr fr) is that it creates an IDR which will allocate IDs starting at base πŸ”₯

That's it. That's the whole flex. Starting point = base. Iconic, lowkey.


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/linux/idr.h πŸ“ and honestly the whole friend group:


ngl if you got here you're already doing great, go read idr_init(9) next if you want the no-base version 🧚

okay that's the whole page, mwah πŸ’‹ β€” this came from ./include/linux, dated October 2026, and it's the idr_init_base(9) Kernel API Manual entry. slay, go forth and allocate πŸ“

πŸ“¦ where this page comes from