svc_create_memory_pool(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… svc_create_memory_pool(9) β€” Kernel API Manual energy ✨

okay so bestie, welcome to the Kernel API Manual, and today's main character is svc_create_memory_pool β€” no cap, she's the one who spins up a memory pool out of a reserved memory block πŸŽ€


🌸 NAME 🌸

svc_create_memory_pool β€” literally here to create a memory pool from a reserved memory block, that's her whole thing πŸ’–


✨ SYNOPSIS ✨

struct gen_pool * svc_create_memory_pool (struct platform_device *pdev ,
       struct stratix10_svc_sh_memory *sh_memory );

like, she takes two things and hands you back a struct gen_pool *. slay 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pdev β€” pointer to service layer device. yes girl, the device one πŸ‘‘
  • sh_memory β€” pointer to service shared memory structure. the shared-memory bestie πŸ’œ

⭐ RETURN ⭐

you get a pool allocated from the reserved memory block, or ERR_PTR on error 😭 β€” so like, check her before you go using her, iykyk 🌈


πŸ”₯ SEE ALSO πŸ”₯

the Kernel file lives at ./drivers/firmware/stratix10-svc.c, and she rolls with a whole squad, fr fr β€” here's everyone:


ok that's the whole page, go build your pool and be iconic about it πŸ’…βœ¨

sign-off vibes: this one's from ./drivers/firmware, dated October 2026, and yes the page is still called svc_create_memory_pool(9) πŸ“πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from