2 #ifndef __ASM_XEN_DRIVER_UTIL_H__
3 #define __ASM_XEN_DRIVER_UTIL_H__
5 #include <linux/vmalloc.h>
7 /* Allocate/destroy a 'vmalloc' VM area. */
8 extern struct vm_struct *alloc_vm_area(unsigned long size);
9 extern void free_vm_area(struct vm_struct *area);
11 /* Lock an area so that PTEs are accessible in the current address space. */
12 extern void lock_vm_area(struct vm_struct *area);
13 extern void unlock_vm_area(struct vm_struct *area);
15 #endif /* __ASM_XEN_DRIVER_UTIL_H__ */