__netmem_get_pp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


mwah πŸ’‹ this page is from source/version ./include/net, dated October 2026. xoxo, __netmem_get_pp(9) πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from