Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_page.h
Show First 20 Lines • Show All 503 Lines • ▼ Show 20 Lines | |||||
extern long first_page; /* first physical page number */ | extern long first_page; /* first physical page number */ | ||||
#define VM_PAGE_TO_PHYS(entry) ((entry)->phys_addr) | #define VM_PAGE_TO_PHYS(entry) ((entry)->phys_addr) | ||||
/* | /* | ||||
* PHYS_TO_VM_PAGE() returns the vm_page_t object that represents a memory | * PHYS_TO_VM_PAGE() returns the vm_page_t object that represents a memory | ||||
* page to which the given physical address belongs. The correct vm_page_t | * page to which the given physical address belongs. The correct vm_page_t | ||||
* object is returned for addresses that are not page-aligned. | * object is returned for addresses that are not page-aligned. | ||||
* vm_page_phys_to_vm_page() is same as PHYS_TO_VM_PAGE() but also can | |||||
* return the count of pages after m in the same physical segment. | |||||
*/ | */ | ||||
vm_page_t PHYS_TO_VM_PAGE(vm_paddr_t pa); | vm_page_t PHYS_TO_VM_PAGE(vm_paddr_t pa); | ||||
vm_page_t vm_page_phys_to_vm_page(vm_paddr_t pa, u_long *cnt_after); | |||||
/* | /* | ||||
* 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*() | * The meaning of VM_ALLOC_ZERO differs slightly between the vm_page_alloc*() | ||||
▲ Show 20 Lines • Show All 499 Lines • Show Last 20 Lines |