Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_page.h
Show First 20 Lines • Show All 514 Lines • ▼ Show 20 Lines | |||||
vm_page_t PHYS_TO_VM_PAGE(vm_paddr_t pa); | vm_page_t PHYS_TO_VM_PAGE(vm_paddr_t pa); | ||||
/* | /* | ||||
* Page allocation parameters for vm_page for the functions | * Page allocation parameters for vm_page for the functions | ||||
* vm_page_alloc(), vm_page_grab(), vm_page_alloc_contig() and | * vm_page_alloc(), vm_page_grab(), vm_page_alloc_contig() and | ||||
* vm_page_alloc_freelist(). Some functions support only a subset | * vm_page_alloc_freelist(). Some functions support only a subset | ||||
* of the flags, and ignore others, see the flags legend. | * of the flags, and ignore others, see the flags legend. | ||||
* | * | ||||
* The meaning of VM_ALLOC_ZERO differs slightly between the vm_page_alloc*() | * vm_page_grab* functions will set the page state to valid if | ||||
* and the vm_page_grab*() functions. See these functions for details. | * VM_ALLOC_ZERO is set. | ||||
* | * | ||||
* Bits 0 - 1 define class. | * Bits 0 - 1 define class. | ||||
* Bits 2 - 15 dedicated for flags. | * Bits 2 - 15 dedicated for flags. | ||||
* Legend: | * Legend: | ||||
* (a) - vm_page_alloc() supports the flag. | * (a) - vm_page_alloc() supports the flag. | ||||
* (c) - vm_page_alloc_contig() supports the flag. | * (c) - vm_page_alloc_contig() supports the flag. | ||||
* (f) - vm_page_alloc_freelist() supports the flag. | * (f) - vm_page_alloc_freelist() supports the flag. | ||||
* (g) - vm_page_grab() supports the flag. | * (g) - vm_page_grab() supports the flag. | ||||
▲ Show 20 Lines • Show All 454 Lines • Show Last 20 Lines |