AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
vmem Struct Reference

An arena: a range, and its segments. More...

#include <vmem.h>

Data Fields

const char * name
size_t quantum
struct vmem_seg * segs
struct vmem_seg * free [VMEM_LISTS]
struct vmem_seg * hash [VMEM_HASH]
size_t size
size_t inuse

Detailed Description

An arena: a range, and its segments.

Definition at line 41 of file vmem.h.

Field Documentation

◆ free

struct vmem_seg* vmem::free[VMEM_LISTS]

Definition at line 46 of file vmem.h.

Referenced by free_list(), and vmem_alloc().

◆ hash

struct vmem_seg* vmem::hash[VMEM_HASH]

Definition at line 47 of file vmem.h.

Referenced by hash_chain().

◆ inuse

size_t vmem::inuse

Definition at line 50 of file vmem.h.

Referenced by kvmem_selftest_run(), vmem_alloc(), and vmem_free().

◆ name

const char* vmem::name

Definition at line 42 of file vmem.h.

Referenced by vmem_init().

◆ quantum

size_t vmem::quantum

Definition at line 43 of file vmem.h.

Referenced by free_list(), hash_chain(), vmem_alloc(), and vmem_init().

◆ segs

struct vmem_seg* vmem::segs

Definition at line 45 of file vmem.h.

Referenced by kvmem_segs(), seg_link(), and seg_unlink().

◆ size

size_t vmem::size

Definition at line 49 of file vmem.h.

Referenced by kvmem_alloc(), kvmem_unmap(), and vmem_init().


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