direct-io.hg

view linux-2.6-xen-sparse/include/xen/driver_util.h @ 11509:2e6c10dc7c0b

[POWERPC][XEN] make sure put_domain() is called in case of allocate_rma() failuer

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Tue Sep 12 10:53:46 2006 -0400 (2006-09-12)
parents 48c0f5489d44
children c4ed5b740a8d
line source
2 #ifndef __ASM_XEN_DRIVER_UTIL_H__
3 #define __ASM_XEN_DRIVER_UTIL_H__
5 #include <linux/config.h>
6 #include <linux/vmalloc.h>
8 /* Allocate/destroy a 'vmalloc' VM area. */
9 extern struct vm_struct *alloc_vm_area(unsigned long size);
10 extern void free_vm_area(struct vm_struct *area);
12 /* Lock an area so that PTEs are accessible in the current address space. */
13 extern void lock_vm_area(struct vm_struct *area);
14 extern void unlock_vm_area(struct vm_struct *area);
16 #endif /* __ASM_XEN_DRIVER_UTIL_H__ */