summaryrefslogtreecommitdiff
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
authorTom Rini <trini@kernel.crashing.org>2002-06-08 02:12:09 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-06-08 02:12:09 -0700
commit3f77edfe88b59b70bc538f835cec0a7b797face1 (patch)
treed94b80f5268ec9c5ff746e81b0f86b4e70b48235 /mm/vmalloc.c
parent3102f3d2dab23e2f6128eb7177820af2e2e29995 (diff)
[PATCH] Move vmalloc wrappers out of include/linux/vmalloc.h
This moves the vmalloc wrappers from <linux/vmalloc.h> into mm/vmalloc.c. Doing this will later allow us to remove <linux/mm.h> from <linux/vmalloc.h>, along with some other #include fixups.
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r--mm/vmalloc.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 5e269765466a..a3082fa949ce 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -232,6 +232,33 @@ void vfree(void * addr)
printk(KERN_ERR "Trying to vfree() nonexistent vm area (%p)\n", addr);
}
+/*
+ * Allocate any pages
+ */
+
+void * vmalloc (unsigned long size)
+{
+ return __vmalloc(size, GFP_KERNEL | __GFP_HIGHMEM, PAGE_KERNEL);
+}
+
+/*
+ * Allocate ISA addressable pages for broke crap
+ */
+
+void * vmalloc_dma (unsigned long size)
+{
+ return __vmalloc(size, GFP_KERNEL|GFP_DMA, PAGE_KERNEL);
+}
+
+/*
+ * vmalloc 32bit PA addressable pages - eg for PCI 32bit devices
+ */
+
+void * vmalloc_32(unsigned long size)
+{
+ return __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
+}
+
void * __vmalloc (unsigned long size, int gfp_mask, pgprot_t prot)
{
void * addr;