sys/src/vmsvmalloc.c File Reference

#include <linux/config.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/spinlock.h>
#include <linux/highmem.h>
#include <linux/smp_lock.h>
#include <asm/uaccess.h>
#include <asm/pgalloc.h>
#include <asm/pgtable.h>

Go to the source code of this file.

Functions

void vmfree_area_pages (unsigned long address, unsigned long size)
int vmalloc_area_pages (unsigned long address, unsigned long size, int gfp_mask, pgprot_t prot)
struct vm_struct * get_vm_area (unsigned long size, unsigned long flags)
void vfree (void *addr)
void * __vmalloc (unsigned long size, int gfp_mask, pgprot_t prot)
long vread (char *buf, char *addr, unsigned long count)
long vwrite (char *buf, char *addr, unsigned long count)

Variables

rwlock_t vmlist_lock = RW_LOCK_UNLOCKED
struct vm_struct * vmlist


Function Documentation

void* __vmalloc ( unsigned long  size,
int  gfp_mask,
pgprot_t  prot 
)

Definition at line 280 of file vmsvmalloc.c.

References get_vm_area(), num_physpages, vfree(), and vmalloc_area_pages().

struct vm_struct* get_vm_area ( unsigned long  size,
unsigned long  flags 
) [read]

Definition at line 222 of file vmsvmalloc.c.

References kfree(), kmalloc(), vmlist, and vmlist_lock.

Referenced by __vmalloc().

void vfree ( void *  addr  ) 

Definition at line 256 of file vmsvmalloc.c.

References kfree(), vmfree_area_pages(), vmlist, and vmlist_lock.

Referenced by __vmalloc(), cwps_forcex(), exe_dacefc(), exe_dlcefc(), and mmg_purgempl().

int vmalloc_area_pages ( unsigned long  address,
unsigned long  size,
int  gfp_mask,
pgprot_t  prot 
) [inline]

Definition at line 191 of file vmsvmalloc.c.

Referenced by __vmalloc().

void vmfree_area_pages ( unsigned long  address,
unsigned long  size 
)

Definition at line 111 of file vmsvmalloc.c.

Referenced by vfree().

long vread ( char *  buf,
char *  addr,
unsigned long  count 
)

Definition at line 301 of file vmsvmalloc.c.

References vmlist, and vmlist_lock.

long vwrite ( char *  buf,
char *  addr,
unsigned long  count 
)

Definition at line 339 of file vmsvmalloc.c.

References vmlist, and vmlist_lock.


Variable Documentation

struct vm_struct* vmlist

Definition at line 27 of file vmsvmalloc.c.

Referenced by get_vm_area(), vfree(), vread(), and vwrite().

rwlock_t vmlist_lock = RW_LOCK_UNLOCKED

Definition at line 26 of file vmsvmalloc.c.

Referenced by get_vm_area(), vfree(), vread(), and vwrite().


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