MOS Source Code
|
#include <task_types.h>
Public Attributes | |
u32 | magic |
pid_t | pid |
const char * | name |
process_t * | parent |
list_head | children |
list of children processes | |
as_linked_list | |
node in the parent's children list | |
bool | exited |
true if the process has exited | |
u32 | exit_status |
exit status | |
fd_type | files [MOS_PROCESS_MAX_OPEN_FILES] |
thread_t * | main_thread |
list_head | threads |
mm_context_t * | mm |
dentry_t * | working_directory |
platform_process_options_t | platform_options |
platform per-process flags | |
process_signal_info_t | signal_info |
signal handling info | |
Definition at line 42 of file task_types.h.
u32 magic |
Definition at line 44 of file task_types.h.
Referenced by process_allocate(), and process_is_valid().
pid_t pid |
Definition at line 45 of file task_types.h.
Referenced by do_syslog(), fork(), kthread_init(), MOS_STATIC_ASSERT(), process_allocate(), process_destroy(), process_do_fork(), process_exit(), process_new(), process_wait_for_pid(), signal_send_to_process(), and vsnprintf_do_pointer_kernel().
const char* name |
Definition at line 46 of file task_types.h.
Referenced by do_syslog(), process_allocate(), process_destroy(), process_do_execveat(), process_do_fork(), process_new(), and vsnprintf_do_pointer_kernel().
process_t* parent |
Definition at line 47 of file task_types.h.
Referenced by _process_do_print(), dump_process(), process_allocate(), and process_exit().
list_head children |
list of children processes
Definition at line 48 of file task_types.h.
Referenced by process_allocate(), process_exit(), and process_wait_for_pid().
as_linked_list |
node in the parent's children list
Definition at line 49 of file task_types.h.
bool exited |
true if the process has exited
Definition at line 51 of file task_types.h.
Referenced by process_exit(), and process_wait_for_pid().
u32 exit_status |
exit status
Definition at line 52 of file task_types.h.
Referenced by _process_do_print(), process_exit(), and process_wait_for_pid().
Definition at line 54 of file task_types.h.
Referenced by process_attach_ref_fd(), process_detach_fd(), process_do_execveat(), process_do_fork(), process_exit(), and process_get_fd().
thread_t* main_thread |
Definition at line 56 of file task_types.h.
Referenced by _process_do_print(), elf_create_process(), elf_do_fill_process(), platform_context_setup_child_thread(), process_destroy(), process_do_execveat(), process_exit(), and process_new().
list_head threads |
Definition at line 57 of file task_types.h.
Referenced by process_allocate(), process_do_execveat(), process_exit(), signal_send_to_process(), and thread_allocate().
mm_context_t* mm |
Definition at line 59 of file task_types.h.
Referenced by elf_do_fill_process(), mmstat_sysfs_pagetable_show(), mmstat_sysfs_vmaps_show(), mos_start_kernel(), platform_context_setup_child_thread(), process_allocate(), process_destroy(), process_do_execveat(), process_do_fork(), process_dump_mmaps(), reschedule(), thread_destroy(), and thread_new().
dentry_t* working_directory |
Definition at line 60 of file task_types.h.
Referenced by process_do_fork(), process_exit(), and process_new().
platform_process_options_t platform_options |
platform per-process flags
Definition at line 62 of file task_types.h.
Referenced by x86_setup_thread_common().
process_signal_info_t signal_info |
signal handling info
Definition at line 64 of file task_types.h.
Referenced by process_allocate(), process_do_execveat(), process_do_fork(), process_exit(), and process_register_signal_handler().