Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
proc_mm.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002 Jeff Dike ([email protected])
3  * Licensed under the GPL
4  */
5 
6 #ifndef __SKAS_PROC_MM_H
7 #define __SKAS_PROC_MM_H
8 
9 #define MM_MMAP 54
10 #define MM_MUNMAP 55
11 #define MM_MPROTECT 56
12 #define MM_COPY_SEGMENTS 57
13 
14 struct mm_mmap {
15  unsigned long addr;
16  unsigned long len;
17  unsigned long prot;
18  unsigned long flags;
19  unsigned long fd;
20  unsigned long offset;
21 };
22 
23 struct mm_munmap {
24  unsigned long addr;
25  unsigned long len;
26 };
27 
28 struct mm_mprotect {
29  unsigned long addr;
30  unsigned long len;
31  unsigned int prot;
32 };
33 
34 struct proc_mm_op {
35  int op;
36  union {
37  struct mm_mmap mmap;
38  struct mm_munmap munmap;
41  } u;
42 };
43 
44 #endif