File: vmalloc.h

package info (click to toggle)
kernel-source-2.2.22 2.2.22-1woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 92,736 kB
  • ctags: 279,994
  • sloc: ansic: 1,710,947; asm: 60,329; makefile: 10,285; sh: 2,401; perl: 907; tcl: 570; lisp: 218; cpp: 186; awk: 133; sed: 72
file content (27 lines) | stat: -rw-r--r-- 623 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#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);
long vread(char *buf, char *addr, unsigned long count);
void vmfree_area_pages(unsigned long address, unsigned long size);
int vmalloc_area_pages(unsigned long address, unsigned long size);
extern inline void * vmalloc_32(unsigned long size)
{
	return vmalloc(size);
}
#endif