X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fxen%2Fdriver_util.h;fp=include%2Fxen%2Fdriver_util.h;h=4e70b93db5a46d19bbbe0e548a2ae86232ba9635;hb=1db395853d4f30d6120458bd279ede1f882a8525;hp=0000000000000000000000000000000000000000;hpb=34a75f0025b9cf803b6a88db032e6ad6950c9313;p=linux-2.6.git diff --git a/include/xen/driver_util.h b/include/xen/driver_util.h new file mode 100644 index 000000000..4e70b93db --- /dev/null +++ b/include/xen/driver_util.h @@ -0,0 +1,16 @@ + +#ifndef __ASM_XEN_DRIVER_UTIL_H__ +#define __ASM_XEN_DRIVER_UTIL_H__ + +#include +#include + +/* Allocate/destroy a 'vmalloc' VM area. */ +extern struct vm_struct *alloc_vm_area(unsigned long size); +extern void free_vm_area(struct vm_struct *area); + +/* Lock an area so that PTEs are accessible in the current address space. */ +extern void lock_vm_area(struct vm_struct *area); +extern void unlock_vm_area(struct vm_struct *area); + +#endif /* __ASM_XEN_DRIVER_UTIL_H__ */