PatchworkOS  da8a090
A non-POSIX operating system.
Loading...
Searching...
No Matches
process.h File Reference
Include dependency graph for process.h:
This graph shows which files directly or indirectly include this file:

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_tprocess_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_tprocess_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.