DEFINE_IDR(9)
π DEFINE_IDR(9) β like, the Kernel API Manual page you actually wanna read π
okay bestie, pull up a chair, because we're talking about DEFINE_IDR β yes, that's the actual name, capital letters and everything, we don't make the rules (well, the kernel does) β¨
πΈ NAME πΈ
DEFINE_IDR β Define a statically-allocated IDR. no cap, that's literally the whole vibe π
π¦ SYNOPSIS π¦
DEFINE_IDR (name );
she's short, she's sweet, she's a macro π
π ARGUMENTS π
nameβ Name of IDR. that's it. that's the argument. she's namednameand she knows what she's about π
β¨ DESCRIPTION β¨
so here's the tea π: an IDR defined using this macro is ready for use with no additional initialisation required. like, you don't have to do a single extra thing to her β she comes out the box prepped, hydrated, and main character ready π
the one lil' detail: she contains no IDs. empty. zero. an absolutely immaculate, freshly-vacuumed IDR with nothing in it yet π§
π₯ SEE ALSO π₯
- Kernel file
./include/linux/idr.h IDR_INIT(9)idr_get_cursor(9)idr_set_cursor(9)idr sync(9)idr_init_base(9)idr_init(9)idr_is_empty(9)idr_preload_end(9)idr_for_each_entry(9)idr_for_each_entry_ul(9)idr_for_each_entry_continue(9)idr_for_each_entry_continue_ul(9)ida_alloc(9)ida_alloc_min(9)ida_alloc_max(9)
go read them all, i'll wait, i'm obsessed with your dedication fr fr π«Ά
ngl bestie, that's the entire page. short, iconic, ate and left no crumbs π
mwah π β this lil' group chat message came to you from the ./include/linux directory, dated October 2026, and it's signed off as DEFINE_IDR(9) in the Kernel API Manual. byeee, go initialise something πβ
π¦ 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