genradix_prealloc(9)
π genradix_prealloc(9)
okay so bestie, welcome to the Kernel API Manual page for genradix_prealloc β yes that's the manual name, it's giving official documentation energy but we're gonna make it make sense π«Ά
β¨ NAME β¨
genradix_prealloc β preallocate entries in a generic radix tree πΈ
π SYNOPSIS π
genradix_prealloc (_radix , _nr , _gfp );
π¦ ARGUMENTS π¦
_radixβ the genradix you wanna preallocate, like the actual tree we're doing this for π_nrβ how many entries you want preallocated, the count, the number, the amount, ok π_gfpβ the gfp mask, that's the flag situation you're passing along β¨
π DESCRIPTION π
so here's the tea, bestie: this one returns 0 on success π and -ENOMEM on failure π β that's literally the whole bit. no cap, that's it, that's the description. short and iconic, periodt.
π₯ SEE ALSO π₯
- Kernel file
./include/linux/generic-radix-tree.hπΈ - Generic radix trees/sparse arrays(9)
genradix_init(9)genradix_free(9)genradix_ptr(9)genradix_ptr_alloc(9)genradix_iter_init(9)genradix_iter_peek(9)genradix_iter_peek_prev(9)genradix_for_each(9)genradix_for_each_reverse(9)
go read those next, iykyk π§π
ok that's the whole page bestie, you ate that ngl π β¨
and for the cute sign-off: this gem lives over in ./include/linux, it's dated October 2026, and it's filed under genradix_prealloc(9) in case you need to find it again ππ«Άπ
π¦ 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