* vm_page_alloc: * * Allocate and return a page that is associated with the specified * object and offset pair. By default, this page is exclusive busied. * * The caller must always specify an allocation class. * * allocation classes: * VM_ALLOC_NORMAL normal process request * VM_ALLOC_SYSTEM system *really* needs a page * VM_ALLOC_INTERRUPT interrupt time request * * optional alloc
| 1974 | * VM_ALLOC_ZERO prefer a zeroed page |
| 1975 | */ |
| 1976 | vm_page_t |
| 1977 | vm_page_alloc(vm_object_t object, vm_pindex_t pindex, int req) |
| 1978 | { |
| 1979 | |
| 1980 | return (vm_page_alloc_after(object, pindex, req, object != NULL ? |
| 1981 | vm_radix_lookup_le(&object->rtree, pindex) : NULL)); |
| 1982 | } |
| 1983 | |
| 1984 | vm_page_t |
| 1985 | vm_page_alloc_domain(vm_object_t object, vm_pindex_t pindex, int domain, |
no test coverage detected