DOKK / manpages / debian 10 / freebsd-manpages / vm_page_dontneed.9freebsd.en
VM_PAGE_DONTNEED(9) Kernel Developer's Manual VM_PAGE_DONTNEED(9)

vm_page_dontneedindicate that a page is not needed anymore

#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_page.h>

void
vm_page_dontneed(vm_page_t m);

The () function advises the VM system that the given page is no longer required. If the page is already in the inactive queue or in the cache queue, this function does nothing; otherwise the page is deactivated.

Note that () does not necessarily deactivate a page, but instead implements an algorithm that attempts to prevent small objects from having their pages reused too quickly, and large objects from flushing smaller ones from the queues as their pages are released.

vm_page_deactivate(9)

This manual page was written by Chad David <davidc@acns.ab.ca>.

July 30, 2001 Debian