netmem_is_pfmemalloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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