2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
12 enum { MMAP
, MUNMAP
, MPROTECT
} type
;
37 extern void mprotect_kernel_vm(int w
);
38 extern void force_flush_all(void);
39 extern void fix_range_common(struct mm_struct
*mm
, unsigned long start_addr
,
40 unsigned long end_addr
, int force
, int data
,
41 void (*do_ops
)(int, struct host_vm_op
*, int));
42 extern int flush_tlb_kernel_range_common(unsigned long start
,
45 extern int add_mmap(unsigned long virt
, unsigned long phys
, unsigned long len
,
46 int r
, int w
, int x
, struct host_vm_op
*ops
, int index
,
47 int last_filled
, int data
,
48 void (*do_ops
)(int, struct host_vm_op
*, int));
49 extern int add_munmap(unsigned long addr
, unsigned long len
,
50 struct host_vm_op
*ops
, int index
, int last_filled
,
51 int data
, void (*do_ops
)(int, struct host_vm_op
*, int));
52 extern int add_mprotect(unsigned long addr
, unsigned long len
, int r
, int w
,
53 int x
, struct host_vm_op
*ops
, int index
,
54 int last_filled
, int data
,
55 void (*do_ops
)(int, struct host_vm_op
*, int));
59 * Overrides for Emacs so that we follow Linus's tabbing style.
60 * Emacs will notice this stuff at the end of the file and automatically
61 * adjust the settings for this buffer only. This must remain at the end
63 * ---------------------------------------------------------------------------
65 * c-file-style: "linux"