STRUCT PAGE_POOL_PARAMS(9)
๐ struct page_pool_params(9)
okay bestie, welcome to the Kernel API Manual โ yes we're reading kernel headers for fun now, this is who we are ๐
โจ NAME โจ
struct page_pool_params โ literally the parameters for a page pool, that's the whole vibe ๐
๐ธ SYNOPSIS ๐ธ
struct page_pool_params {
struct {
unsigned int order;
unsigned int pool_size;
int nid;
struct device *dev;
struct napi_struct *napi;
enum dma_data_direction dma_dir;
unsigned int max_len;
unsigned int offset;
};
struct {
struct net_device *netdev;
unsigned int queue_idx;
unsigned int flags;
};
};
๐ Members ๐
Look at these anonymous structs, they're giving mystery โจ
{unnamed_struct}โ anonymous ๐ซถ (yes. that's it. that's the description. we love a no-notes king)orderโ it's2^orderpages on allocation, so like, do the math babe ๐งฎpool_sizeโ the size of theptr_ringโญnidโ the NUMA node id we're allocating pages from ๐devโ the device, and it's here for DMA pre-mapping purposes ๐บ๏ธnapiโ the NAPI that is the sole consumer of pages โ otherwiseNULL, main character only, no sharing ๐ฅdma_dirโ DMA mapping direction โก๏ธmax_lenโ max DMA sync memory size, forPP_FLAG_DMA_SYNC_DEV๐offsetโ DMA sync address offset, forPP_FLAG_DMA_SYNC_DEV๐ฏ{unnamed_struct}โ anonymous, again ๐ (iconic behaviour honestly)netdevโ the netdev this pool is gonna serve (leave it asNULLif there's none, or if there's multiple โ yes really ๐)queue_idxโ the queue idx thispage_poolis being created for ๐๏ธflagsโ it's one ofPP_FLAG_DMA_MAP,PP_FLAG_DMA_SYNC_DEV,PP_FLAG_SYSTEM_POOL,PP_FLAG_ALLOW_UNREADABLE_NETMEM๐ฉ
๐ฆ SEE ALSO ๐ฆ
- Kernel file
./include/net/page_pool/types.hstruct page_pool_alloc_stats(9),struct page_pool_recycle_stats(9),struct page_pool_stats(9)โ go read the stats ones too bestie, iykyk ๐
no cap, every single field up there matters โnapibeing the sole consumer is not a suggestion, andnetdevreally does wantNULLwhen there's none or multiple, so don't get cute ๐
okay that's the whole page, you ate that ๐๐
โ from <pink>./include/net/page_pool</pink>, dated October 2026, with love, mwah ๐โจ๐
๐ฆ 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