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

Last change on this file since 679 was 679, checked in by David Azarewicz, 4 years ago

Merge changes from Paul's uniaud32next branch.

File size: 851 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
11struct vm_struct {
12 unsigned long flags;
13 void * addr;
14 unsigned long size;
15 struct vm_struct * next;
16};
17
18struct vm_struct * get_vm_area(unsigned long size);
19void *vmalloc(unsigned long size);
20void vfree(void *ptr);
21long vread(char *buf, char *addr, unsigned long count);
22void vmfree_area_pages(unsigned long address, unsigned long size);
23int vmalloc_area_pages(unsigned long address, unsigned long size);
24
25extern struct vm_struct * vmlist;
26extern void *vzalloc(unsigned long size);
27extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
28void *__vmalloc_node(unsigned long size, unsigned long align, gfp_t gfp_mask,
29 int node, const void *caller);
30#endif
31
Note: See TracBrowser for help on using the repository browser.