9#include <abi-bits/signal.h>
40#define nullfd ((fd_type){ .io = NULL, .flags = 0 })
42typedef struct _process
#define MOS_PROCESS_MAX_OPEN_FILES
list_node_t list_head
A linked list head.
struct _process process_t
waitlist_t sigchild_waitlist
the parent is waiting for a child to exit, if not empty
as_linked_list
node in the parent's children list
bool exited
true if the process has exited
platform_process_options_t platform_options
platform per-process flags
process_signal_info_t signal_info
signal handling info
dentry_t * working_directory
list_head children
list of children processes
u32 exit_status
exit status
list_head pending
list of pending signals
sigset_t mask
pending signals mask
platform_thread_options_t platform_options
platform-specific thread options
thread_mode mode
user-mode thread or kernel-mode
as_linked_list
node in the process's thread list
downwards_stack_t u_stack
user-mode stack
waitlist_t waiters
list of threads waiting for this thread to exit
downwards_stack_t k_stack
kernel-mode stack
spinlock_t state_lock
protects the thread state
thread_state_t state
thread state
thread_signal_info_t signal_info