summaryrefslogtreecommitdiffstats
path: root/include/linux/vmalloc.h
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1997-07-31 22:57:10 +0000
committerMiguel de Icaza <miguel@nuclecu.unam.mx>1997-07-31 22:57:10 +0000
commit9765588f1533bde5f6af8056525368b301d72989 (patch)
treeeecfacde0115baf8cd67323981b2e20404fc683d /include/linux/vmalloc.h
parent5fd44fa07fcc1a00e75622a2ae5f6463a6c06be0 (diff)
Changes required to share a piece of memory between kernel in
interrupt-land and a user application. Vmalloc is now an inline function that calls vmalloc_prot with the original protection bits used in vmalloc.
Diffstat (limited to 'include/linux/vmalloc.h')
-rw-r--r--include/linux/vmalloc.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h
index 40072ab47..ad7447530 100644
--- a/include/linux/vmalloc.h
+++ b/include/linux/vmalloc.h
@@ -15,10 +15,17 @@ struct vm_struct {
struct vm_struct * get_vm_area(unsigned long size);
void vfree(void * addr);
-void * vmalloc(unsigned long size);
+void * vmalloc_prot(unsigned long size, pgprot_t prot);
+void * vmalloc_uncached(unsigned long size);
+
+extern inline void * vmalloc(unsigned long size)
+{
+ vmalloc_prot (size, PAGE_KERNEL);
+}
+
int vread(char *buf, char *addr, int count);
void vmfree_area_pages(unsigned long address, unsigned long size);
-int vmalloc_area_pages(unsigned long address, unsigned long size);
+int vmalloc_area_pages(unsigned long address, unsigned long size, pgprot_t prot);
extern inline void set_pgdir(unsigned long address, pgd_t entry)
{