![]() |
MOS Source Code
|
#include <task_types.hpp>
Public Member Functions | |
Process (Private, Process *parent, mos::string_view name) | |
~Process () | |
Static Public Member Functions | |
static Process * | New (Process *parent, mos::string_view name) |
Public Attributes | |
PrivateTag | |
const u32 | magic = MOS_FOURCC('P', 'R', 'O', 'C') |
pid_t | pid |
mos::string | name |
Process * | 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 * | main_thread |
mos::list< Thread * > | thread_list |
MMContext * | mm |
dentry_t * | working_directory |
platform_process_options_t | platform_options |
platform per-process flags | |
process_signal_info_t | signal_info |
signal handling info | |
Additional Inherited Members | |
![]() | |
static constexpr mos::string_view | type_name |
Definition at line 49 of file task_types.hpp.
|
explicit |
Definition at line 67 of file process.cpp.
Referenced by New(), and Process().
~Process | ( | ) |
Definition at line 101 of file process.cpp.
|
inlinestatic |
Definition at line 80 of file task_types.hpp.
Referenced by kthread_init(), process_do_fork(), and process_new().
PrivateTag |
Definition at line 51 of file task_types.hpp.
const u32 magic = MOS_FOURCC('P', 'R', 'O', 'C') |
Definition at line 57 of file task_types.hpp.
Referenced by Process().
pid_t pid |
Definition at line 58 of file task_types.hpp.
Referenced by Process(), process_destroy(), process_do_fork(), signal_send_to_process(), and vsnprintf_do_pointer_kernel().
mos::string name |
Definition at line 59 of file task_types.hpp.
Referenced by elf_create_process(), New(), Process(), process_do_fork(), and vsnprintf_do_pointer_kernel().
Process* parent |
Definition at line 60 of file task_types.hpp.
list_head children |
list of children processes
Definition at line 61 of file task_types.hpp.
Referenced by Process(), and process_exit().
as_linked_list |
node in the parent's children list
Definition at line 62 of file task_types.hpp.
bool exited |
true if the process has exited
Definition at line 64 of file task_types.hpp.
u32 exit_status |
exit status
Definition at line 65 of file task_types.hpp.
Definition at line 67 of file task_types.hpp.
Referenced by process_attach_ref_fd(), process_detach_fd(), process_do_fork(), and process_get_fd().
Thread* main_thread |
Definition at line 69 of file task_types.hpp.
Referenced by elf_do_fill_process(), platform_context_setup_child_thread(), and process_destroy().
Definition at line 70 of file task_types.hpp.
Referenced by signal_send_to_process(), and thread_allocate().
MMContext* mm |
Definition at line 72 of file task_types.hpp.
Referenced by elf_do_fill_process(), platform_context_setup_child_thread(), Process(), process_destroy(), process_do_fork(), process_dump_mmaps(), and thread_new().
dentry_t* working_directory |
Definition at line 73 of file task_types.hpp.
Referenced by process_do_fork(), and process_new().
platform_process_options_t platform_options |
platform per-process flags
Definition at line 75 of file task_types.hpp.
Referenced by x86_setup_thread_common().
process_signal_info_t signal_info |
signal handling info
Definition at line 77 of file task_types.hpp.
Referenced by Process(), process_do_fork(), and process_register_signal_handler().