page_pool_dev_alloc_frag(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… page_pool_dev_alloc_frag β€” the Kernel API Manual, bestie edition πŸŽ€

okay so, hi! this is a page from the Kernel API Manual, and it's all about page_pool_dev_alloc_frag. it's short, it's sweet, it's giving "small function, big job" energy. let's get into it ✨


🌸 NAME 🌸

page_pool_dev_alloc_frag β€” allocate a page fragment. that's it. that's the whole name. lowkey iconic that they just say it straight 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

struct page * page_pool_dev_alloc_frag (struct page_pool *pool ,
unsigned int *offset , unsigned int size );

like, look at it. a return type of struct page *, three arguments, no drama. she's neat, she's tidy, she's ready for you πŸ’œ


πŸŽ€ ARGUMENTS πŸŽ€

  • pool β€” the pool you're pulling from. this is your pool, bestie, the one you're allocating out of 🌊
  • offset β€” offset to the allocated page. it'll point you at where in the page your fragment actually lives πŸ‘€
  • size β€” requested size. how much you want. be honest about it fr fr πŸ“

⭐ DESCRIPTION ⭐

Get a page fragment from the page allocator or page_pool caches. that's the whole vibe β€” the function goes and fetches you a fragment, and it might come straight from the page allocator or out of the page_pool caches, iykyk 🧚


πŸ”₯ RETURN πŸ”₯

the allocated page fragment πŸ’– …or NULL if it couldn't hook you up 😭 so like, always check, okay? no cap, check your pointer.


🌈 SEE ALSO 🌈

soooo much good stuff in the family. the kernel file is ./include/net/page_pool/helpers.h, and everything here lives in the page_pool allocator(9) universe πŸ‘‘

go read them all, main character energy only πŸ’…


and that's the whole page, bestie πŸ“ this cutie came out of ./include/net/page_pool, dated October 2026, and it's filed under the page_pool_dev_alloc_frag(9) name β€” go forth and allocate responsibly βœ¨πŸ¦‹πŸ’–

πŸ“¦ where this page comes from