Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/vm_swapout.c
Show First 20 Lines • Show All 955 Lines • ▼ Show 20 Lines | swapout(struct proc *p) | ||||
FOREACH_THREAD_IN_PROC(p, td) | FOREACH_THREAD_IN_PROC(p, td) | ||||
vm_thread_swapout(td); | vm_thread_swapout(td); | ||||
PROC_LOCK(p); | PROC_LOCK(p); | ||||
p->p_flag &= ~P_SWAPPINGOUT; | p->p_flag &= ~P_SWAPPINGOUT; | ||||
p->p_swtick = ticks; | p->p_swtick = ticks; | ||||
return (0); | return (0); | ||||
} | } | ||||
/* Used to determine if the current process is itself the reaper. */ | |||||
bool | |||||
vm_curproc_is_vmproc(void) | |||||
{ | |||||
return curproc == vmproc; | |||||
} |