Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mem.c File Reference
#include <linux/mm.h>
#include <linux/miscdevice.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/mman.h>
#include <linux/random.h>
#include <linux/init.h>
#include <linux/raw.h>
#include <linux/tty.h>
#include <linux/capability.h>
#include <linux/ptrace.h>
#include <linux/device.h>
#include <linux/highmem.h>
#include <linux/crash_dump.h>
#include <linux/backing-dev.h>
#include <linux/bootmem.h>
#include <linux/splice.h>
#include <linux/pfn.h>
#include <linux/export.h>
#include <linux/io.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  memdev
 

Macros

#define DEVPORT_MINOR   4
 
#define zero_lseek   null_lseek
 
#define full_lseek   null_lseek
 
#define write_zero   write_null
 
#define read_full   read_zero
 
#define open_mem   open_port
 
#define open_kmem   open_mem
 
#define open_oldmem   open_mem
 

Functions

void __weak unxlate_dev_mem_ptr (unsigned long phys, void *addr)
 
int __weak phys_mem_access_prot_allowed (struct file *file, unsigned long pfn, unsigned long size, pgprot_t *vma_prot)
 
 fs_initcall (chr_dev_init)
 

Macro Definition Documentation

#define DEVPORT_MINOR   4

Definition at line 38 of file mem.c.

#define full_lseek   null_lseek

Definition at line 738 of file mem.c.

#define open_kmem   open_mem

Definition at line 742 of file mem.c.

#define open_mem   open_port

Definition at line 741 of file mem.c.

#define open_oldmem   open_mem

Definition at line 743 of file mem.c.

#define read_full   read_zero

Definition at line 740 of file mem.c.

#define write_zero   write_null

Definition at line 739 of file mem.c.

#define zero_lseek   null_lseek

Definition at line 737 of file mem.c.

Function Documentation

fs_initcall ( chr_dev_init  )
int __weak phys_mem_access_prot_allowed ( struct file file,
unsigned long  pfn,
unsigned long  size,
pgprot_t vma_prot 
)

Definition at line 215 of file mem.c.

void __weak unxlate_dev_mem_ptr ( unsigned long  phys,
void addr 
)

Definition at line 88 of file mem.c.