|
PatchworkOS
|
#include <sys/proc.h>Go to the source code of this file.
Data Structures | |
| struct | page_buffer_t |
| Structure for a page buffer in the PMM stack. More... | |
| struct | pmm_stack_t |
| PMM stack structure for managing higher physical memory. More... | |
Macros | |
| #define | PMM_BUFFER_MAX ((PAGE_SIZE - sizeof(page_buffer_t)) / sizeof(void*)) |
The maximum number of pages that can be stored in a page_buffer_t. | |
Functions | |
| void | pmm_stack_init (pmm_stack_t *stack) |
| Initializes a PMM stack. | |
| void * | pmm_stack_alloc (pmm_stack_t *stack) |
| Allocates a single page from the stack. | |
| void | pmm_stack_free (pmm_stack_t *stack, void *address) |
| Frees a single page, returning it to the stack. | |