sys/src/vmsswapfile.c File Reference

#include <linux/config.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/kernel_stat.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#include <linux/blkdev.h>
#include <linux/vmalloc.h>
#include <linux/pagemap.h>
#include <linux/shm.h>
#include <linux/compiler.h>
#include <asm/pgtable.h>
#include <dyndef.h>
#include <pfldef.h>
#include <system_data_cells.h>

Go to the source code of this file.

Defines

#define SWAPFILE_CLUSTER   256
#define SWAPFILE_CLUSTER   1

Functions

int can_share_swap_page (struct page *page)
asmlinkage long sys_swapoff (const char *specialfile)
int get_swaparea_info (char *buf)
asmlinkage long sys_swapon (const char *specialfile, int swap_flags)
void si_swapinfo (struct sysinfo *val)
void swap_setup (void)

Variables

spinlock_t swaplock = SPIN_LOCK_UNLOCKED
int total_swap_pages
struct swap_list_t swap_list = {-1, -1}
struct _pfl swap_info_pfl [MAX_SWAPFILES]
struct address_space swapper_space
int page_cluster
pager_daemon_t pager_daemon


Define Documentation

#define SWAPFILE_CLUSTER   1

Definition at line 48 of file vmsswapfile.c.

#define SWAPFILE_CLUSTER   256

Definition at line 48 of file vmsswapfile.c.


Function Documentation

int can_share_swap_page ( struct page *  page  ) 

Definition at line 85 of file vmsswapfile.c.

Referenced by do_wp_page().

int get_swaparea_info ( char *  buf  ) 

Definition at line 119 of file vmsswapfile.c.

void si_swapinfo ( struct sysinfo *  val  ) 

Definition at line 134 of file vmsswapfile.c.

void swap_setup ( void   ) 

Definition at line 140 of file vmsswapfile.c.

asmlinkage long sys_swapoff ( const char *  specialfile  ) 

Definition at line 115 of file vmsswapfile.c.

asmlinkage long sys_swapon ( const char *  specialfile,
int  swap_flags 
)

Definition at line 128 of file vmsswapfile.c.


Variable Documentation

Definition at line 144 of file vmsswapfile.c.

pager_daemon_t pager_daemon

Definition at line 146 of file vmsswapfile.c.

struct _pfl swap_info_pfl[MAX_SWAPFILES]

Definition at line 44 of file vmsswapfile.c.

struct swap_list_t swap_list = {-1, -1}

Definition at line 42 of file vmsswapfile.c.

spinlock_t swaplock = SPIN_LOCK_UNLOCKED

Definition at line 32 of file vmsswapfile.c.

struct address_space swapper_space

Definition at line 138 of file vmsswapfile.c.

Referenced by vm_enough_memory().

Definition at line 34 of file vmsswapfile.c.


Generated on Fri Oct 9 10:26:05 2009 for FreeVMS by  doxygen 1.5.5