| 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 | struct vm_struct {
|
|---|
| 10 | unsigned long flags;
|
|---|
| 11 | void * addr;
|
|---|
| 12 | unsigned long size;
|
|---|
| 13 | struct vm_struct * next;
|
|---|
| 14 | };
|
|---|
| 15 |
|
|---|
| 16 | struct vm_struct * get_vm_area(unsigned long size);
|
|---|
| 17 | void *vmalloc(unsigned long size);
|
|---|
| 18 | void vfree(void *ptr);
|
|---|
| 19 | long vread(char *buf, char *addr, unsigned long count);
|
|---|
| 20 | void vmfree_area_pages(unsigned long address, unsigned long size);
|
|---|
| 21 | int vmalloc_area_pages(unsigned long address, unsigned long size);
|
|---|
| 22 |
|
|---|
| 23 | extern struct vm_struct * vmlist;
|
|---|
| 24 | #endif
|
|---|
| 25 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.