patch-2.0.21-2.1.0 linux/include/linux/vmalloc.h
Next file: linux/include/linux/xd.h
Previous file: linux/include/linux/umsdos_fs.p
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Mon Sep 30 11:19:11 1996
- Orig file:
lx2.0/v2.0.21/linux/include/linux/vmalloc.h
- Orig date:
Thu Jan 1 02:00:00 1970
diff -u --recursive --new-file lx2.0/v2.0.21/linux/include/linux/vmalloc.h linux/include/linux/vmalloc.h
@@ -0,0 +1,32 @@
+#ifndef __LINUX_VMALLOC_H
+#define __LINUX_VMALLOC_H
+
+#include <linux/sched.h>
+#include <linux/mm.h>
+
+#include <asm/pgtable.h>
+
+struct vm_struct {
+ unsigned long flags;
+ void * addr;
+ unsigned long size;
+ struct vm_struct * next;
+};
+
+struct vm_struct * get_vm_area(unsigned long size);
+void vfree(void * addr);
+void * vmalloc(unsigned long size);
+int vread(char *buf, char *addr, int count);
+
+extern inline void set_pgdir(unsigned long address, pgd_t entry)
+{
+ struct task_struct * p;
+
+ for_each_task(p) {
+ if (!p->mm)
+ continue;
+ *pgd_offset(p->mm,address) = entry;
+ }
+}
+
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov