diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-10-24 06:48:46 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-10-24 06:48:46 -0400 |
| commit | 8c82a17e9c924c0e9f13e75e4c2f6bca19a4b516 (patch) | |
| tree | d535f46a917e14e90deccb29ad00aac016ad18dd /include/linux/vmalloc.h | |
| parent | 4ce72a2c063a7fa8e42a9435440ae3364115a58d (diff) | |
| parent | 57f8f7b60db6f1ed2c6918ab9230c4623a9dbe37 (diff) | |
Merge commit 'v2.6.28-rc1' into sched/urgent
Diffstat (limited to 'include/linux/vmalloc.h')
| -rw-r--r-- | include/linux/vmalloc.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h index 328eb4022727..307b88577eaa 100644 --- a/include/linux/vmalloc.h +++ b/include/linux/vmalloc.h | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #define _LINUX_VMALLOC_H | 2 | #define _LINUX_VMALLOC_H |
| 3 | 3 | ||
| 4 | #include <linux/spinlock.h> | 4 | #include <linux/spinlock.h> |
| 5 | #include <linux/init.h> | ||
| 5 | #include <asm/page.h> /* pgprot_t */ | 6 | #include <asm/page.h> /* pgprot_t */ |
| 6 | 7 | ||
| 7 | struct vm_area_struct; /* vma defining user mapping in mm_types.h */ | 8 | struct vm_area_struct; /* vma defining user mapping in mm_types.h */ |
| @@ -23,7 +24,6 @@ struct vm_area_struct; /* vma defining user mapping in mm_types.h */ | |||
| 23 | #endif | 24 | #endif |
| 24 | 25 | ||
| 25 | struct vm_struct { | 26 | struct vm_struct { |
| 26 | /* keep next,addr,size together to speedup lookups */ | ||
| 27 | struct vm_struct *next; | 27 | struct vm_struct *next; |
| 28 | void *addr; | 28 | void *addr; |
| 29 | unsigned long size; | 29 | unsigned long size; |
| @@ -37,6 +37,19 @@ struct vm_struct { | |||
| 37 | /* | 37 | /* |
| 38 | * Highlevel APIs for driver use | 38 | * Highlevel APIs for driver use |
| 39 | */ | 39 | */ |
| 40 | extern void vm_unmap_ram(const void *mem, unsigned int count); | ||
| 41 | extern void *vm_map_ram(struct page **pages, unsigned int count, | ||
| 42 | int node, pgprot_t prot); | ||
| 43 | extern void vm_unmap_aliases(void); | ||
| 44 | |||
| 45 | #ifdef CONFIG_MMU | ||
| 46 | extern void __init vmalloc_init(void); | ||
| 47 | #else | ||
| 48 | static inline void vmalloc_init(void) | ||
| 49 | { | ||
| 50 | } | ||
| 51 | #endif | ||
| 52 | |||
| 40 | extern void *vmalloc(unsigned long size); | 53 | extern void *vmalloc(unsigned long size); |
| 41 | extern void *vmalloc_user(unsigned long size); | 54 | extern void *vmalloc_user(unsigned long size); |
| 42 | extern void *vmalloc_node(unsigned long size, int node); | 55 | extern void *vmalloc_node(unsigned long size, int node); |
| @@ -90,6 +103,4 @@ extern void free_vm_area(struct vm_struct *area); | |||
| 90 | extern rwlock_t vmlist_lock; | 103 | extern rwlock_t vmlist_lock; |
| 91 | extern struct vm_struct *vmlist; | 104 | extern struct vm_struct *vmlist; |
| 92 | 105 | ||
| 93 | extern const struct seq_operations vmalloc_op; | ||
| 94 | |||
| 95 | #endif /* _LINUX_VMALLOC_H */ | 106 | #endif /* _LINUX_VMALLOC_H */ |
