|
PatchworkOS
dbbdc99
A non-POSIX operating system.
|
#include <kernel/cpu/gdt.h>#include <kernel/fs/dentry.h>#include <kernel/fs/file_table.h>#include <kernel/fs/namespace.h>#include <kernel/fs/path.h>#include <kernel/fs/vfs.h>#include <kernel/log/log.h>#include <kernel/mem/vmm.h>#include <kernel/proc/process.h>#include <kernel/sched/loader.h>#include <kernel/sched/sched.h>#include <kernel/sched/thread.h>#include <errno.h>#include <kernel/sched/wait.h>#include <stdlib.h>#include <string.h>#include <sys/elf.h>#include <sys/math.h>#include <sys/proc.h>Go to the source code of this file.
Functions | |
| static void | loader_strv_free (char **array, uint64_t amount) |
| void | loader_exec (void) |
| Causes the currently running thread to load and execute a new program. | |
| static void | loader_entry (void) |
| SYSCALL_DEFINE (SYS_SPAWN, pid_t, const char **argv, spawn_flags_t flags) | |
| SYSCALL_DEFINE (SYS_THREAD_CREATE, tid_t, void *entry, void *arg) | |
|
static |
|
static |
| SYSCALL_DEFINE | ( | SYS_SPAWN | , |
| pid_t | , | ||
| const char ** | argv, | ||
| spawn_flags_t | flags | ||
| ) |
| SYSCALL_DEFINE | ( | SYS_THREAD_CREATE | , |
| tid_t | , | ||
| void * | entry, | ||
| void * | arg | ||
| ) |