MentOS  0.8.0
The Mentoring Operating System
Public Attributes | List of all members
block_t Struct Reference

Represents a block of memory within the heap. This structure includes metadata for managing memory allocation and free status. More...

Public Attributes

unsigned int is_free: 1
 A single bit indicating if the block is free (1) or allocated (0).
 
unsigned int size: 31
 The size of the block in bytes. This includes the space for the block's overhead.
 
list_head list
 Entry in the list of all blocks in the heap.
 
list_head free
 Entry in the list of free blocks.
 

Detailed Description

Represents a block of memory within the heap. This structure includes metadata for managing memory allocation and free status.


The documentation for this struct was generated from the following file: