#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 _fcb * | shmem_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 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)) |
#define SHMEM_SB | ( | sb | ) | (&sb->u.shmem_sb) |
#define TMPFS_MAGIC 0x01021994 |
Definition at line 40 of file vmsshmem.c.
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] |
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 | ) |
atomic_t shmem_nrpages = ATOMIC_INIT(0) |
Definition at line 56 of file vmsshmem.c.