kasan_mempool_poison_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

bestie, welcome to the Kernel API Manual entry for kasan_mempool_poison_pages(9) β€” it’s giving β€œkernel page allocation safety check” energy and we’re gonna get into it πŸ’–

🌸 NAME 🌸

kasan_mempool_poison_pages β€” check and poison a mempool page allocation. literally the whole vibe ✨

✨ SYNOPSIS ✨

bool kasan_mempool_poison_pages (struct page *page , unsigned int order
);

πŸŽ€ ARGUMENTS πŸŽ€

  • page β€” pointer to the page allocation, bestie 🫢
  • order β€” order of the allocation, no cap 🌈

πŸ’… DESCRIPTION πŸ’…

okay so this function is made for kernel subsystems that cache page allocations so they can reuse them instead of freeing them back to page_alloc β€” think mempool, iykyk πŸ‘‘

it’s similar to kasan_mempool_poison_object, but this one operates on page allocations instead of objects πŸ’…

before that poisoned allocation can be reused, it must be unpoisoned via kasan_mempool_unpoison_pages β€” that part is not optional, bestie 😭

πŸ¦‹ RETURN πŸ¦‹

it returns true if the allocation can be safely reused; otherwise it returns false ✨

πŸ”₯ SEE ALSO πŸ”₯


mwah πŸ’‹ this lil page lives in source ./include/linux, dated October 2026, and it’s titled kasan_mempool_poison_pages(9) β€” bye bestie, go poison those pages responsibly πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from