void process_kill(process_t *process, uint64_t status)
Kills a process.
bool process_is_child(process_t *process, pid_t parentId)
Checks if a process is a child of another process.
process_t * process_get_kernel(void)
Gets the kernel process.
process_t * process_new(process_t *parent, const char **argv, const path_t *cwd, priority_t priority)
Allocates and initializes a new process.
void process_procfs_init(void)
Initializes the /proc directory.
uint8_t priority_t
Priority type.
__UINT64_TYPE__ tid_t
Thread Identifier.
__UINT64_TYPE__ pid_t
Process Identifier.
Argument Vector structure.
Directory entry structure.
Per-process futex context.
A entry in a doubly linked list.
A simple ticket lock implementation.
dentry_t * prioFile
The /proc/[pid]/prio file.
mount_t * self
The /proc/[pid]/self mount point.
list_entry_t siblingEntry
dentry_t * dir
The /proc/[pid] directory for this process.
dentry_t * noteFile
The /proc/[pid]/note file.
dentry_t * waitFile
The /proc/[pid]/wait file.
process_threads_t threads
dentry_t * cwdFile
The /proc/[pid]/cwd file.
dentry_t * cmdlineFile
The /proc/[pid]/cmdline file.
wait_queue_t dyingWaitQueue
_Atomic(priority_t) priority
Process threads structure.
Reference counting structure.
Read-Write Ticket Lock structure.
Virtual address space structure.