Comments about the FrameAllocator
This commit is contained in:
parent
efcd5218a4
commit
4f1dae37d8
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,10 @@
|
||||||
|
|
||||||
namespace kernel {
|
namespace kernel {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handles allocating page frames. Frames are chunks of physical memory into
|
||||||
|
* which pages may be allocated.
|
||||||
|
*/
|
||||||
struct FrameAllocator
|
struct FrameAllocator
|
||||||
{
|
{
|
||||||
FrameAllocator();
|
FrameAllocator();
|
||||||
|
@ -28,6 +32,8 @@ struct FrameAllocator
|
||||||
*/
|
*/
|
||||||
void* allocate();
|
void* allocate();
|
||||||
|
|
||||||
|
// TODO: free()
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef kstd::Bitmap<u8> Bitmap;
|
typedef kstd::Bitmap<u8> Bitmap;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue