Copyright (C) 2001 Chad David <email@example.com>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice(s), this list of conditions and the following disclaimer as the first lines of this file unmodified other than the possible addition of one or more copyright notices. 2. Redistributions in binary for...
NAMEvm_page_dontneed - indicate that a page is not needed anymore
SYNOPSISIn sys/param.h In vm/vm.h In vm/vm_page.h Ft void Fn vm_page_dontneed vm_page_t m
DESCRIPTIONThe Fn vm_page_dontneed 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 Fn vm_page_dontneed 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.