genradix_prealloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯

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