__netmem_get_pp(9)
π NAME π
okay so bestie, welcome to the Kernel API Manual β this is the page for __netmem_get_pp(9). It will unsafely get a pointer to the &page_pool backing @netmem π. No cap, unsafe is literally in the name.
β¨ SYNOPSIS β¨
struct page_pool * __netmem_get_pp (netmem_ref netmem );
π ARGUMENTS π
netmemβ the netmem reference to get the pointer from π«Ά
π¦ DESCRIPTION π¦
This is the unsafe version of netmem_get_pp. When netmem is always page-backed β e.g. when it's a header buffer β it performs faster and generates smaller object code, because it avoids clearing the LSB β¨.
But bestie, listen: when netmem points to IOV, it provokes invalid memory access π. That is the risk. That is the vibe. Do not forget it.
πΈ RETURN πΈ
A pointer to the page_pool β and it's garbage if netmem is not page-backed π¬
π SEE ALSO π
Kernel file ./include/net/netmem.h, plus the whole reference crew:
netmem_ref(9)__netmem_to_page(9)virt_to_netmem(9)__netmem_to_nmdesc(9)__netmem_address(9)netmem_is_pfmemalloc(9)
mwah π this page is from source/version ./include/net, dated October 2026. xoxo, __netmem_get_pp(9) π«Άπ
π¦ 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