FreeBSD virtual memory subsystem code
vm_swapout_dummy.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/proc.h>
#include <sys/sysctl.h>
#include <sys/vmmeter.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_pageout.h>
Include dependency graph for vm_swapout_dummy.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
 SYSCTL_INT (_vm, VM_SWAPPING_ENABLED, swap_enabled, CTLFLAG_RD, &vm_swap_enabled, 0, "Enable entire process swapout")
 
 SYSCTL_INT (_vm, OID_AUTO, swap_idle_enabled, CTLFLAG_RD, &vm_swap_idle_enabled, 0, "Allow swapout on idle criteria")
 
void vm_swapout_run (void)
 
void vm_swapout_run_idle (void)
 
void faultin (struct proc *p)
 
void swapper (void)
 

Variables

static int vm_swap_enabled = 0
 
static int vm_swap_idle_enabled = 0
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ faultin()

void faultin ( struct proc *  p)

Definition at line 110 of file vm_swapout_dummy.c.

◆ swapper()

void swapper ( void  )

Definition at line 119 of file vm_swapout_dummy.c.

References faultin(), SWAPIN_INTERVAL, swapper_selector(), and swapper_wkilled_only().

Here is the call graph for this function:

◆ SYSCTL_INT() [1/2]

SYSCTL_INT ( _vm  ,
OID_AUTO  ,
swap_idle_enabled  ,
CTLFLAG_RD  ,
vm_swap_idle_enabled,
,
"Allow swapout on idle criteria"   
)

◆ SYSCTL_INT() [2/2]

SYSCTL_INT ( _vm  ,
VM_SWAPPING_ENABLED  ,
swap_enabled  ,
CTLFLAG_RD  ,
vm_swap_enabled,
,
"Enable entire process swapout  
)

◆ vm_swapout_run()

void vm_swapout_run ( void  )

Definition at line 100 of file vm_swapout_dummy.c.

References vm_req_vmdaemon(), vm_swap_enabled, and VM_SWAP_NORMAL.

Referenced by vm_pageout_inactive().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vm_swapout_run_idle()

void vm_swapout_run_idle ( void  )

Definition at line 105 of file vm_swapout_dummy.c.

References vm_req_vmdaemon(), VM_SWAP_IDLE, and vm_swap_idle_enabled.

Referenced by vm_pageout_inactive().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ vm_swap_enabled

int vm_swap_enabled = 0
static

Definition at line 89 of file vm_swapout_dummy.c.

◆ vm_swap_idle_enabled

int vm_swap_idle_enabled = 0
static

Definition at line 94 of file vm_swapout_dummy.c.