uml: kernel_thread shouldn't panic
[pv_ops_mirror.git] / arch / um / include / skas / proc_mm.h
blob9028092096033d0fdcdc4aff1dece32b239e64e2
1 /*
2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
6 #ifndef __SKAS_PROC_MM_H
7 #define __SKAS_PROC_MM_H
9 #define MM_MMAP 54
10 #define MM_MUNMAP 55
11 #define MM_MPROTECT 56
12 #define MM_COPY_SEGMENTS 57
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;
23 struct mm_munmap {
24 unsigned long addr;
25 unsigned long len;
28 struct mm_mprotect {
29 unsigned long addr;
30 unsigned long len;
31 unsigned int prot;
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;
44 #endif