direct-io.hg
annotate 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>
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 |
rev | line source |
---|---|
kaf24@6986 | 1 |
kaf24@6986 | 2 #ifndef __ASM_XEN_DRIVER_UTIL_H__ |
kaf24@6986 | 3 #define __ASM_XEN_DRIVER_UTIL_H__ |
kaf24@6986 | 4 |
kaf24@6986 | 5 #include <linux/config.h> |
kaf24@6986 | 6 #include <linux/vmalloc.h> |
kaf24@6986 | 7 |
kaf24@6990 | 8 /* Allocate/destroy a 'vmalloc' VM area. */ |
kaf24@6990 | 9 extern struct vm_struct *alloc_vm_area(unsigned long size); |
kaf24@6990 | 10 extern void free_vm_area(struct vm_struct *area); |
kaf24@6990 | 11 |
kaf24@6990 | 12 /* Lock an area so that PTEs are accessible in the current address space. */ |
kaf24@6990 | 13 extern void lock_vm_area(struct vm_struct *area); |
kaf24@6990 | 14 extern void unlock_vm_area(struct vm_struct *area); |
kaf24@6986 | 15 |
kaf24@6986 | 16 #endif /* __ASM_XEN_DRIVER_UTIL_H__ */ |