net_mp_netme...ace_in_cache(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… net_mp_netme...ace_in_cache(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” today's main character is net_mp_netmem_place_in_cache, and honestly? she's giving β€œsmall function, very specific job.” let's get into it πŸŽ€

🌸 NAME 🌸

net_mp_netmem_place_in_cache β€” give a netmem to a page pool

✨ SYNOPSIS ✨

void net_mp_netmem_place_in_cache (struct page_pool *pool , netmem_ref
netmem );

πŸŽ€ ARGUMENTS πŸŽ€

  • pool β€” the page pool to place the netmem into. that's the destination, bestie 🫢
  • netmem β€” netmem to give. hand it over πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

okay so the vibe here is: push an accounted netmem into the page pool's allocation cache. simple. iconic. very β€œput the thing where it belongs” energy ✨

⚠️ but listen β€” the caller must ensure that there is space in the cache. that's on you, not on the function. no cap.
🚨 also important: it should only be called off the mp_ops->alloc_netmems path. like, that's the rule, and we respect it πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./include/net/page_pool/memory_provider.h


that's the whole page, fr fr. source/version: ./include/net/page_pool Β· date: October 2026 Β· mwah πŸ’–

πŸ“¦ where this page comes from