|
PatchworkOS
da8a090
A non-POSIX operating system.
|
#include <kernel/drivers/perf.h>#include <kernel/fs/cwd.h>#include <kernel/fs/file_table.h>#include <kernel/fs/namespace.h>#include <kernel/fs/sysfs.h>#include <kernel/mem/space.h>#include <kernel/sched/sched.h>#include <kernel/sched/wait.h>#include <kernel/sync/futex.h>#include <kernel/utils/ref.h>#include <stdatomic.h>Go to the source code of this file.
Data Structures | |
| struct | process_threads_t |
| Represents the threads in a process. More... | |
| struct | process_t |
| Process structure. More... | |
Enumerations | |
| enum | process_flags_t { PROCESS_NONE = 0 , PROCESS_DYING = 1 << 0 , PROCESS_SUSPENDED = 1 << 1 } |
| Process flags enum. More... | |
Functions | |
| process_t * | process_new (priority_t priority) |
| Allocates and initializes a new process. | |
| void | process_kill (process_t *process, int32_t status) |
| Kills a process. | |
| uint64_t | process_copy_env (process_t *dest, process_t *src) |
| Copies the environment variables from one process to another. | |
| uint64_t | process_set_cmdline (process_t *process, char **argv, uint64_t argc) |
| Sets the command line arguments for a process. | |
| bool | process_has_thread (process_t *process, tid_t tid) |
| Checks if a process has a thread with the specified thread ID. | |
| process_t * | process_get_kernel (void) |
| Gets the kernel process. | |
| void | process_procfs_init (void) |
Initializes the /proc directory. | |
| void | process_reaper_init (void) |
| Initializes the process reaper. | |