]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/um/kernel/skas/include/proc_mm.h
Linux-2.6.12-rc2
[mirror_ubuntu-artful-kernel.git] / arch / um / kernel / skas / include / proc_mm.h
1 /*
2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
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;
39 struct mm_mprotect mprotect;
40 int copy_segments;
41 } u;
42 };
43
44 #endif
45
46 /*
47 * Overrides for Emacs so that we follow Linus's tabbing style.
48 * Emacs will notice this stuff at the end of the file and automatically
49 * adjust the settings for this buffer only. This must remain at the end
50 * of the file.
51 * ---------------------------------------------------------------------------
52 * Local variables:
53 * c-file-style: "linux"
54 * End:
55 */