L4Re – L4 Runtime Environment
memdesc.h File Reference

Memory description functions. More...

#include <l4/sys/kip.h>
+ Include dependency graph for memdesc.h:

Go to the source code of this file.

Data Structures

struct  l4_kernel_info_mem_desc_t
 Memory descriptor data structure. More...


typedef struct l4_kernel_info_mem_desc_t l4_kernel_info_mem_desc_t
 Memory descriptor data structure. More...


enum  l4_mem_type_t {
  l4_mem_type_undefined = 0x0 , l4_mem_type_conventional = 0x1 , l4_mem_type_reserved = 0x2 , l4_mem_type_dedicated = 0x3 ,
  l4_mem_type_shared = 0x4 , l4_mem_type_info = 0xd , l4_mem_type_bootloader = 0xe , l4_mem_type_archspecific = 0xf
 Type of a memory descriptor. More...
enum  l4_mem_info_sub_type_t { l4_mem_info_acpi_rsdp = 0 }
 Memory sub types for l4_mem_type_info descriptors. More...


l4_kernel_info_mem_desc_tl4_kernel_info_get_mem_descs (l4_kernel_info_t *kip) L4_NOTHROW
 Get pointer to memory descriptors from KIP.
unsigned l4_kernel_info_get_num_mem_descs (l4_kernel_info_t *kip) L4_NOTHROW
 Get number of memory descriptors in KIP. More...
void l4_kernel_info_set_mem_desc (l4_kernel_info_mem_desc_t *md, l4_addr_t start, l4_addr_t end, unsigned type, unsigned virt, unsigned sub_type) L4_NOTHROW
 Populate a memory descriptor. More...
l4_umword_t l4_kernel_info_get_mem_desc_start (l4_kernel_info_mem_desc_t *md) L4_NOTHROW
 Get start address of the region described by the memory descriptor. More...
l4_umword_t l4_kernel_info_get_mem_desc_end (l4_kernel_info_mem_desc_t *md) L4_NOTHROW
 Get end address of the region described by the memory descriptor. More...
l4_umword_t l4_kernel_info_get_mem_desc_type (l4_kernel_info_mem_desc_t *md) L4_NOTHROW
 Get type of the memory region. More...
l4_umword_t l4_kernel_info_get_mem_desc_subtype (l4_kernel_info_mem_desc_t *md) L4_NOTHROW
 Get sub-type of memory region. More...
l4_umword_t l4_kernel_info_get_mem_desc_is_virtual (l4_kernel_info_mem_desc_t *md) L4_NOTHROW
 Get virtual flag of the memory descriptor. More...

Detailed Description

Memory description functions.

Definition in file memdesc.h.