Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
mem.c File Reference
#include <stddef.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/mman.h>
#include <init.h>
#include <as-layout.h>
#include <mm_id.h>
#include <os.h>
#include <proc_mm.h>
#include <ptrace_user.h>
#include <registers.h>
#include <skas.h>
#include <sysdep/ptrace.h>
#include <sysdep/stub.h>

Go to the source code of this file.

Functions

void wait_stub_done (int pid)
 
 __initcall (init_syscall_regs)
 
long run_syscall_stub (struct mm_id *mm_idp, int syscall, unsigned long *args, long expected, void **addr, int done)
 
long syscall_stub_data (struct mm_id *mm_idp, unsigned long *data, int data_count, void **addr, void **stub_addr)
 
int map (struct mm_id *mm_idp, unsigned long virt, unsigned long len, int prot, int phys_fd, unsigned long long offset, int done, void **data)
 
int unmap (struct mm_id *mm_idp, unsigned long addr, unsigned long len, int done, void **data)
 
int protect (struct mm_id *mm_idp, unsigned long addr, unsigned long len, unsigned int prot, int done, void **data)
 

Variables

unsigned long batch_syscall_stub
 
unsigned long __syscall_stub_start
 
int proc_mm
 

Function Documentation

__initcall ( init_syscall_regs  )
int map ( struct mm_id mm_idp,
unsigned long  virt,
unsigned long  len,
int  prot,
int  phys_fd,
unsigned long long  offset,
int  done,
void **  data 
)

Definition at line 177 of file mem.c.

int protect ( struct mm_id mm_idp,
unsigned long  addr,
unsigned long  len,
unsigned int  prot,
int  done,
void **  data 
)

Definition at line 251 of file mem.c.

long run_syscall_stub ( struct mm_id mm_idp,
int  syscall,
unsigned long args,
long  expected,
void **  addr,
int  done 
)

Definition at line 117 of file mem.c.

long syscall_stub_data ( struct mm_id mm_idp,
unsigned long data,
int  data_count,
void **  addr,
void **  stub_addr 
)

Definition at line 145 of file mem.c.

int unmap ( struct mm_id mm_idp,
unsigned long  addr,
unsigned long  len,
int  done,
void **  data 
)

Definition at line 217 of file mem.c.

void wait_stub_done ( int  pid)

Definition at line 55 of file process.c.

Variable Documentation

unsigned long __syscall_stub_start
unsigned long batch_syscall_stub
int proc_mm

Definition at line 150 of file start_up.c.