Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/phys_pager.c
Show All 32 Lines | |||||
#include <sys/conf.h> | #include <sys/conf.h> | ||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/lock.h> | #include <sys/lock.h> | ||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/mutex.h> | #include <sys/mutex.h> | ||||
#include <sys/mman.h> | #include <sys/mman.h> | ||||
#include <sys/rwlock.h> | #include <sys/rwlock.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <sys/user.h> | |||||
#include <vm/vm.h> | #include <vm/vm.h> | ||||
#include <vm/vm_param.h> | #include <vm/vm_param.h> | ||||
#include <vm/vm_object.h> | #include <vm/vm_object.h> | ||||
#include <vm/vm_page.h> | #include <vm/vm_page.h> | ||||
#include <vm/vm_pageout.h> | #include <vm/vm_pageout.h> | ||||
#include <vm/vm_pager.h> | #include <vm/vm_pager.h> | ||||
▲ Show 20 Lines • Show All 245 Lines • ▼ Show 20 Lines | |||||
phys_pager_haspage(vm_object_t object, vm_pindex_t pindex, int *before, | phys_pager_haspage(vm_object_t object, vm_pindex_t pindex, int *before, | ||||
int *after) | int *after) | ||||
{ | { | ||||
return (object->un_pager.phys.ops->phys_pg_haspage(object, pindex, | return (object->un_pager.phys.ops->phys_pg_haspage(object, pindex, | ||||
before, after)); | before, after)); | ||||
} | } | ||||
const struct pagerops physpagerops = { | const struct pagerops physpagerops = { | ||||
.pgo_kvme_type = KVME_TYPE_PHYS, | |||||
.pgo_init = phys_pager_init, | .pgo_init = phys_pager_init, | ||||
.pgo_alloc = phys_pager_alloc, | .pgo_alloc = phys_pager_alloc, | ||||
.pgo_dealloc = phys_pager_dealloc, | .pgo_dealloc = phys_pager_dealloc, | ||||
.pgo_getpages = phys_pager_getpages, | .pgo_getpages = phys_pager_getpages, | ||||
.pgo_putpages = phys_pager_putpages, | .pgo_putpages = phys_pager_putpages, | ||||
.pgo_haspage = phys_pager_haspage, | .pgo_haspage = phys_pager_haspage, | ||||
.pgo_populate = phys_pager_populate, | .pgo_populate = phys_pager_populate, | ||||
}; | }; |