gen_pool_fixed_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gen_pool_fixed_alloc(9) β€” the Kernel API Manual moment

okay so first things first, bestie: this whole page is from the Kernel API Manual, section 9, and the star of the show is gen_pool_fixed_alloc. periodt. πŸŽ€


✨ NAME ✨

gen_pool_fixed_alloc β€” reserve a specific region 🌸

like, you're not out here vibing with whatever region the allocator feels like handing you. you are choosing. main character energy fr fr.


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned long gen_pool_fixed_alloc (unsigned long *map , unsigned long
size , unsigned long start , unsigned int nr , void *data , struct
gen_pool *pool , unsigned long start_addr );

look at her. seven arguments. she's that girl and she knows it. πŸ’…


πŸ’– ARGUMENTS πŸ’–

  • map β€” the address to base the search on. it's the whole map of the situation, iykyk πŸ—ΊοΈ
  • size β€” the bitmap size, measured in bits. yes, bits. not bytes. bits. be normal about it ✨
  • start β€” the bitnumber to start searching at, like your little starting point before you go looking for a spot πŸŽ€
  • nr β€” the number of zeroed bits we're looking for. so basically how many clear bits you need to snatch up 🫢
  • data β€” data for alignment. it's the alignment info, doing alignment things 🧚
  • pool β€” pool to get order from, the actual pool we're pulling from πŸ‘‘
  • start_addr β€” not used in this function. literally not used. she's just there. sitting pretty. iconic honestly πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

lowkey the whole gen_pool family reunion is happening here, so lemme introduce everyone:

Kernel file ./lib/genalloc.c ✨

not me listing literally all 24 of them because every single one matters πŸ’œ


okay that's the whole page bestie, go reserve your specific region and slay πŸ¦‹πŸ’–

and that's a wrap on this little ./lib cutie from October 2026 β€” gen_pool_fixed_alloc(9), out. πŸŽ€βœ¨

πŸ“¦ where this page comes from