old-trainOS/include/pmm.h
Felix Queissner ddbfb0e1aa some stuff.
2015-08-13 14:56:50 +02:00

32 lines
527 B
C

#pragma once
#include "multiboot.h"
#if defined(__cplusplus)
extern "C" {
#endif
/**
* Initializes physical memory management.
* @param mb The multi boot structure used for gathering information about free memory.
*/
void pmm_init(const MultibootStructure *mb);
/**
* Frees a page of physical memory.
*/
void pmm_free(void *pptr);
/**
* Allocates a page of physical memory.
*/
void *pmm_alloc(void);
/**
* Calculates the free memory in bytes.
*/
uint32_t pmm_calc_free(void);
#if defined(__cplusplus)
}
#endif