net_mp_netme...ace_in_cache(9)
π 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
- 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