uintptr_t addr_space_t
an address space handle.
Definition arch.h:105
the data of each core (per-CPU data).
#define CPU_MAX
the most cores that ginnOS uses
Definition cpu.h:18
unsigned int uint32_t
Definition fb.h:17
__UINTPTR_TYPE__ uintptr_t
Definition stdint.h:19
sleeping mutex for long critical sections in process context (filesystem and disk I/O).
Definition mutex.h:20
the user half of an address space: the page tables, the areas (vma.h) and the program break.
Definition user_space.h:16
uintptr_t brk
Definition user_space.h:21
volatile uint32_t cpu_mask[CPU_MAX/32]
Definition user_space.h:18
addr_space_t page_directory
Definition user_space.h:19
vma_table_t vmas
Definition user_space.h:20
mutex_t lock
Definition user_space.h:22
volatile uint32_t users
Definition user_space.h:17
a process's areas, sorted by start.
Definition vma.h:58
bool user_space_on_cpu(const user_space_t *space, uint32_t core)
true if the core has the space loaded now.
Definition user_space.c:74
void user_space_activate(user_space_t *space)
load the page tables of a space on the core that runs the call, and keep the cpu_mask of the old and ...
Definition user_space.c:50
void user_space_put(user_space_t *space)
remove a user from a space.
Definition user_space.c:34
user_space_t * user_space_create(void)
make an empty user space with one user.
Definition user_space.c:8
user_space_t * user_space_get(user_space_t *space)
add a user to a space (a new thread that shares it).
Definition user_space.c:28
struct user_space user_space_t
the user half of an address space: the page tables, the areas (vma.h) and the program break.