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

Last change on this file since 772 was 772, checked in by David Azarewicz, 4 months ago

Merge in changes from 6.6-LTS branch.
Fixed additional 25+ problems.

File size: 901 bytes
Line 
1#ifndef __LINUX_VMALLOC_H
2#define __LINUX_VMALLOC_H
3
4//#include <linux/sched.h>
5//#include <linux/mm.h>
6#include <linux/overflow.h>
7
8#include <asm/page.h>
9
10#define VM_MAP 0x00000004 /* vmap()ed pages */
11
12struct vm_struct {
13 unsigned long flags;
14 void * addr;
15 unsigned long size;
16 struct vm_struct * next;
17};
18
19struct vm_struct * get_vm_area(unsigned long size);
20void *vmalloc(unsigned long size);
21void vfree(void *ptr);
22long vread(char *buf, char *addr, unsigned long count);
23void vmfree_area_pages(unsigned long address, unsigned long size);
24int vmalloc_area_pages(unsigned long address, unsigned long size);
25
26extern struct vm_struct * vmlist;
27extern void *vzalloc(unsigned long size);
28extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
29void *__vmalloc_node(unsigned long size, unsigned long align, gfp_t gfp_mask,
30 int node, const void *caller);
31#endif
32
Note: See TracBrowser for help on using the repository browser.