source: GPL/trunk/include/linux/vmalloc.h@ 347

Last change on this file since 347 was 347, checked in by Brendan Oakley, 17 years ago

Adjustments to linux headers and lib32 for compiling resync 1.0.4

File size: 999 bytes
Line 
1#ifndef __LINUX_VMALLOC_H
2#define __LINUX_VMALLOC_H
3
4//#include <linux/sched.h>
5//#include <linux/mm.h>
6
7//#include <asm/pgtable.h>
8
9/* bits in vm_struct->flags */
10#define VM_IOREMAP 0x00000001 /* ioremap() and friends */
11#define VM_ALLOC 0x00000002 /* vmalloc() */
12#define VM_MAP 0x00000004 /* vmap()ed pages */
13#define VM_USERMAP 0x00000008 /* suitable for remap_vmalloc_range */
14#define VM_VPAGES 0x00000010 /* buffer for pages was vmalloc'ed */
15/* bits [20..32] reserved for arch specific ioremap internals */
16
17struct vm_struct {
18 unsigned long flags;
19 void * addr;
20 unsigned long size;
21 struct vm_struct * next;
22};
23
24struct vm_struct * get_vm_area(unsigned long size);
25void *vmalloc(unsigned long size);
26void vfree(void *ptr);
27long vread(char *buf, char *addr, unsigned long count);
28void vmfree_area_pages(unsigned long address, unsigned long size);
29int vmalloc_area_pages(unsigned long address, unsigned long size);
30
31extern struct vm_struct * vmlist;
32#endif
33
Note: See TracBrowser for help on using the repository browser.