Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/vm_page.c
Show First 20 Lines • Show All 3,660 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* vm_page_free_prep: | * vm_page_free_prep: | ||||
* | * | ||||
* Prepares the given page to be put on the free list, | * Prepares the given page to be put on the free list, | ||||
* disassociating it from any VM object. The caller may return | * disassociating it from any VM object. The caller may return | ||||
* the page to the free list only if this function returns true. | * the page to the free list only if this function returns true. | ||||
* | * | ||||
* The object must be locked. The page must be locked if it is | * The object, if it exists, must be locked, and then the page must | ||||
* managed. | * be xbusy. Otherwise the page must be not busied. A managed | ||||
* page must be unmapped. | |||||
*/ | */ | ||||
static bool | static bool | ||||
vm_page_free_prep(vm_page_t m) | vm_page_free_prep(vm_page_t m) | ||||
{ | { | ||||
/* | /* | ||||
* Synchronize with threads that have dropped a reference to this | * Synchronize with threads that have dropped a reference to this | ||||
* page. | * page. | ||||
▲ Show 20 Lines • Show All 1,789 Lines • Show Last 20 Lines |