PatchworkOS
Loading...
Searching...
No Matches
loader.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <stdarg.h>
6
23
34thread_t* loader_spawn(const char** argv, priority_t priority, const path_t* cwd);
35
44thread_t* loader_thread_create(process_t* parent, void* entry, void* arg);
45
#define NORETURN
GCC noreturn function attribute.
Definition defs.h:39
thread_t * loader_spawn(const char **argv, priority_t priority, const path_t *cwd)
Spawns a child process from an executable file.
Definition loader.c:154
NORETURN void loader_jump_to_user_space(thread_t *thread)
Performs the initial jump to userspace.
thread_t * loader_thread_create(process_t *parent, void *entry, void *arg)
Creates a new thread within an existing process.
Definition loader.c:343
uint8_t priority_t
Priority type.
Definition proc.h:41
Path structure.
Definition path.h:110
Process structure.
Definition process.h:53
Thread of execution structure.
Definition thread.h:55