KolibriOS kernel
heap.inc File Reference

Classes

struct  MEM_BLOCK
 

Macros

#define calc_index(op)
 

Functions

void init_kernel_heap ()
 
void alloc_kernel_space (dword size)
 
void free_kernel_space (dword base)
 
void kernel_alloc (dword size)
 
void kernel_free (dword base)
 
void init_heap ()
 
void user_alloc (dword alloc_size)
 
void user_alloc_at (dword address, dword alloc_size)
 
void user_free (dword base)
 
void user_unmap (dword base, dword offset, dword size)
 
void shmem_open (dword name, dword size, dword access)
 
void shmem_close (dword name)
 
void user_ring (dword size)
 

Variables

label md
 
label get_small_block
 
label free_mem_block
 
dd lin_addr
 
dd pages_count
 
label user_normalize
 
label user_realloc
 
label destroy_smap
 
dd action
 
dd owner_access
 
dd mapped
 
dd virt_ptr
 
dd phys_ptr
 
dd num_pages
 

Macro Definition Documentation

◆ calc_index

#define calc_index (   op)

Function Documentation

◆ alloc_kernel_space()

void alloc_kernel_space ( dword  size)

◆ free_kernel_space()

void free_kernel_space ( dword  base)

◆ init_heap()

void init_heap ( )

◆ init_kernel_heap()

void init_kernel_heap ( )

◆ kernel_alloc()

void kernel_alloc ( dword  size)

◆ kernel_free()

void kernel_free ( dword  base)

◆ shmem_close()

void shmem_close ( dword  name)

◆ shmem_open()

void shmem_open ( dword  name,
dword  size,
dword  access 
)

◆ user_alloc()

void user_alloc ( dword  alloc_size)

◆ user_alloc_at()

void user_alloc_at ( dword  address,
dword  alloc_size 
)

◆ user_free()

void user_free ( dword  base)

◆ user_ring()

void user_ring ( dword  size)

◆ user_unmap()

void user_unmap ( dword  base,
dword  offset,
dword  size 
)

Variable Documentation

◆ action

dd action
Initial value
?
Source
core/heap.inc:1276

◆ destroy_smap

label destroy_smap

◆ free_mem_block

label free_mem_block

◆ get_small_block

label get_small_block

◆ lin_addr

dd lin_addr
Initial value
?
Source
core/heap.inc:454

◆ mapped

dd mapped
Initial value
?
Source
core/heap.inc:1278

◆ md

◆ num_pages

dd num_pages
Initial value
?
Source
core/heap.inc:1529

◆ owner_access

dd owner_access
Initial value
?
Source
core/heap.inc:1277

◆ pages_count

dd pages_count
Initial value
?
Source
core/heap.inc:455

◆ phys_ptr

dd phys_ptr
Initial value
?
Source
core/heap.inc:1528

◆ user_normalize

label user_normalize

◆ user_realloc

label user_realloc

◆ virt_ptr

dd virt_ptr
Initial value
?
Source
core/heap.inc:1527