sys/src/vmsshmem.c File Reference

#include <linux/config.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/devfs_fs_kernel.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/file.h>
#include <linux/swap.h>
#include <linux/pagemap.h>
#include <linux/string.h>
#include <linux/locks.h>
#include <linux/smp_lock.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Defines

#define TMPFS_MAGIC   0x01021994
#define ENTRIES_PER_PAGE   (PAGE_CACHE_SIZE/sizeof(unsigned long))
#define SHMEM_SB(sb)   (&sb->u.shmem_sb)
#define BLOCKS_PER_PAGE   (PAGE_CACHE_SIZE/512)
#define SHMEM_MAX_BLOCKS   (SHMEM_NR_DIRECT + ENTRIES_PER_PAGE * ENTRIES_PER_PAGE/2*(ENTRIES_PER_PAGE+1))

Functions

 LIST_HEAD (shmem_inodes)
void shmem_unuse (swp_entry_t entry, struct page *page)
struct page * shmem_nopage (struct vm_area_struct *vma, unsigned long address, int unused)
void shmem_lock (struct file *file, int lock)
struct _fcbshmem_get_inode (struct super_block *sb, int mode, int dev)
 module_init (init_shmem_fs)
int shmem_zero_setup (struct vm_area_struct *vma)
 EXPORT_SYMBOL (shmem_file_setup)

Variables

atomic_t shmem_nrpages = ATOMIC_INIT(0)


Define Documentation

#define BLOCKS_PER_PAGE   (PAGE_CACHE_SIZE/512)

Definition at line 58 of file vmsshmem.c.

#define ENTRIES_PER_PAGE   (PAGE_CACHE_SIZE/sizeof(unsigned long))

Definition at line 42 of file vmsshmem.c.

#define SHMEM_MAX_BLOCKS   (SHMEM_NR_DIRECT + ENTRIES_PER_PAGE * ENTRIES_PER_PAGE/2*(ENTRIES_PER_PAGE+1))

Definition at line 136 of file vmsshmem.c.

Referenced by module_init().

#define SHMEM_SB ( sb   )     (&sb->u.shmem_sb)

Definition at line 44 of file vmsshmem.c.

Referenced by shmem_get_inode().

#define TMPFS_MAGIC   0x01021994

Definition at line 40 of file vmsshmem.c.


Function Documentation

EXPORT_SYMBOL ( shmem_file_setup   ) 

LIST_HEAD ( shmem_inodes   ) 

module_init ( init_shmem_fs   ) 

Definition at line 930 of file vmsshmem.c.

References shmem_get_inode(), SHMEM_MAX_BLOCKS, and vm_enough_memory().

struct _fcb* shmem_get_inode ( struct super_block *  sb,
int  mode,
int  dev 
) [read]

Definition at line 704 of file vmsshmem.c.

References SHMEM_SB.

Referenced by module_init().

void shmem_lock ( struct file *  file,
int  lock 
)

Definition at line 679 of file vmsshmem.c.

struct page* shmem_nopage ( struct vm_area_struct *  vma,
unsigned long  address,
int  unused 
) [read]

Definition at line 660 of file vmsshmem.c.

void shmem_unuse ( swp_entry_t  entry,
struct page *  page 
)

Definition at line 411 of file vmsshmem.c.

int shmem_zero_setup ( struct vm_area_struct *  vma  ) 

Definition at line 994 of file vmsshmem.c.

Referenced by do_mmap_pgoff().


Variable Documentation

atomic_t shmem_nrpages = ATOMIC_INIT(0)

Definition at line 56 of file vmsshmem.c.


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