Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_pageout.c
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | |||||
/* the kernel process "vm_pageout"*/ | /* the kernel process "vm_pageout"*/ | ||||
static void vm_pageout(void); | static void vm_pageout(void); | ||||
static void vm_pageout_init(void); | static void vm_pageout_init(void); | ||||
static int vm_pageout_clean(vm_page_t m, int *numpagedout); | static int vm_pageout_clean(vm_page_t m, int *numpagedout); | ||||
static int vm_pageout_cluster(vm_page_t m); | static int vm_pageout_cluster(vm_page_t m); | ||||
static void vm_pageout_mightbe_oom(struct vm_domain *vmd, int page_shortage, | static void vm_pageout_mightbe_oom(struct vm_domain *vmd, int page_shortage, | ||||
int starting_page_shortage); | int starting_page_shortage); | ||||
SYSINIT(pagedaemon_init, SI_SUB_KTHREAD_PAGE, SI_ORDER_FIRST, vm_pageout_init, | SYSINIT(pagedaemon_init, SI_SUB_KTHREAD_PAGE, SI_ORDER_FIRST, vm_pageout_init); | ||||
NULL); | |||||
struct proc *pageproc; | struct proc *pageproc; | ||||
static struct kproc_desc page_kp = { | static struct kproc_desc page_kp = { | ||||
"pagedaemon", | "pagedaemon", | ||||
vm_pageout, | vm_pageout, | ||||
&pageproc | &pageproc | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 2,279 Lines • Show Last 20 Lines |