#include "types.h"#include "defs.h"#include "param.h"#include "spinlock.h"Go to the source code of this file.
Data Structures | |
| struct | run |
Functions | |
| void | kinit (void) |
| void | kfree (char *v, int len) |
| char * | kalloc (int n) |
Variables | |
| struct { | |
| struct spinlock lock | |
| struct run * freelist | |
| } | kmem |
| char* kalloc | ( | int | n | ) |
Definition at line 91 of file kalloc.c.
References acquire(), cprintf(), kmem, run::len, run::next, PAGE, panic(), r, and release().
Referenced by allocproc(), bootothers(), exec(), fork(), growproc(), pipealloc(), and userinit().
| void kfree | ( | char * | v, | |
| int | len | |||
| ) |
| void kinit | ( | void | ) |
1.5.6