aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/vmalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/vmalloc.h')
-rw-r--r--include/linux/vmalloc.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h
index 227c2a585e4f..4ed6fcd6b726 100644
--- a/include/linux/vmalloc.h
+++ b/include/linux/vmalloc.h
@@ -30,7 +30,7 @@ struct vm_struct {
30 unsigned long flags; 30 unsigned long flags;
31 struct page **pages; 31 struct page **pages;
32 unsigned int nr_pages; 32 unsigned int nr_pages;
33 unsigned long phys_addr; 33 phys_addr_t phys_addr;
34 void *caller; 34 void *caller;
35}; 35};
36 36
@@ -51,14 +51,17 @@ static inline void vmalloc_init(void)
51#endif 51#endif
52 52
53extern void *vmalloc(unsigned long size); 53extern void *vmalloc(unsigned long size);
54extern void *vzalloc(unsigned long size);
54extern void *vmalloc_user(unsigned long size); 55extern void *vmalloc_user(unsigned long size);
55extern void *vmalloc_node(unsigned long size, int node); 56extern void *vmalloc_node(unsigned long size, int node);
57extern void *vzalloc_node(unsigned long size, int node);
56extern void *vmalloc_exec(unsigned long size); 58extern void *vmalloc_exec(unsigned long size);
57extern void *vmalloc_32(unsigned long size); 59extern void *vmalloc_32(unsigned long size);
58extern void *vmalloc_32_user(unsigned long size); 60extern void *vmalloc_32_user(unsigned long size);
59extern void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot); 61extern void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot);
60extern void *__vmalloc_area(struct vm_struct *area, gfp_t gfp_mask, 62extern void *__vmalloc_node_range(unsigned long size, unsigned long align,
61 pgprot_t prot); 63 unsigned long start, unsigned long end, gfp_t gfp_mask,
64 pgprot_t prot, int node, void *caller);
62extern void vfree(const void *addr); 65extern void vfree(const void *addr);
63 66
64extern void *vmap(struct page **pages, unsigned int count, 67extern void *vmap(struct page **pages, unsigned int count,
@@ -88,9 +91,6 @@ extern struct vm_struct *__get_vm_area_caller(unsigned long size,
88 unsigned long flags, 91 unsigned long flags,
89 unsigned long start, unsigned long end, 92 unsigned long start, unsigned long end,
90 void *caller); 93 void *caller);
91extern struct vm_struct *get_vm_area_node(unsigned long size,
92 unsigned long flags, int node,
93 gfp_t gfp_mask);
94extern struct vm_struct *remove_vm_area(const void *addr); 94extern struct vm_struct *remove_vm_area(const void *addr);
95 95
96extern int map_vm_area(struct vm_struct *area, pgprot_t prot, 96extern int map_vm_area(struct vm_struct *area, pgprot_t prot,
@@ -115,10 +115,12 @@ extern rwlock_t vmlist_lock;
115extern struct vm_struct *vmlist; 115extern struct vm_struct *vmlist;
116extern __init void vm_area_register_early(struct vm_struct *vm, size_t align); 116extern __init void vm_area_register_early(struct vm_struct *vm, size_t align);
117 117
118#ifdef CONFIG_SMP
118struct vm_struct **pcpu_get_vm_areas(const unsigned long *offsets, 119struct vm_struct **pcpu_get_vm_areas(const unsigned long *offsets,
119 const size_t *sizes, int nr_vms, 120 const size_t *sizes, int nr_vms,
120 size_t align, gfp_t gfp_mask); 121 size_t align);
121 122
122void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms); 123void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms);
124#endif
123 125
124#endif /* _LINUX_VMALLOC_H */ 126#endif /* _LINUX_VMALLOC_H */