netmem_is_pfmemalloc(9)
okay so this is the netmem_is_pfmemalloc(9) page from the Kernel API Manual, and bestie, itβs a tiny one β letβs go. π
β¨ NAME β¨
netmem_is_pfmemalloc β check if @netmem was allocated under memory pressure
π SYNOPSIS π
bool netmem_is_pfmemalloc (netmem_ref netmem );
π¦ ARGUMENTS π¦
netmemβ the netmem reference you want to check, bestie. π
π RETURN π
It gives you true when the netmem is page-backed and the page was allocated under memory pressure. Otherwise? false, periodt. π
π SEE ALSO π
The kernel file to know is ./include/net/netmem.h, and these are the linked besties:
netmem_ref(9)__netmem_to_page(9)virt_to_netmem(9)__netmem_to_nmdesc(9)__netmem_get_pp(9)__netmem_address(9)
okay bye, drink water, and remember: source/version is ./include/net, the date is October 2026, and netmem_is_pfmemalloc(9) is the main character. π
β¨π«Ά
π¦ 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