![]() |
MOS Source Code
|
#include <task_types.hpp>
Public Member Functions | |
Process (Private, Process *parent, mos::string_view name) | |
~Process () | |
Static Public Member Functions | |
static bool | IsValid (const Process *process) |
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 | |
Friends | |
mos::SyslogStreamWriter | operator<< (mos::SyslogStreamWriter stream, const Process *process) |
Additional Inherited Members | |
![]() | |
static constexpr mos::string_view | type_name |
Definition at line 52 of file task_types.hpp.
|
explicit |
Definition at line 68 of file process.cpp.
Referenced by IsValid(), New(), operator<<, and Process().
~Process | ( | ) |
Definition at line 102 of file process.cpp.
Definition at line 83 of file task_types.hpp.
Referenced by operator<<, process_attach_ref_fd(), process_destroy(), process_detach_fd(), process_do_fork(), process_exit(), process_get(), process_get_fd(), and vsnprintf_do_pointer_kernel().
|
inlinestatic |
Definition at line 92 of file task_types.hpp.
Referenced by kthread_init(), process_do_fork(), and process_new().
|
friend |
Definition at line 97 of file task_types.hpp.
PrivateTag |
Definition at line 54 of file task_types.hpp.
const u32 magic = MOS_FOURCC('P', 'R', 'O', 'C') |
Definition at line 60 of file task_types.hpp.
Referenced by Process().
pid_t pid |
Definition at line 61 of file task_types.hpp.
Referenced by operator<<, Process(), process_destroy(), process_do_fork(), signal_send_to_process(), and vsnprintf_do_pointer_kernel().
mos::string name |
Definition at line 62 of file task_types.hpp.
Referenced by elf_create_process(), New(), operator<<, Process(), process_do_fork(), and vsnprintf_do_pointer_kernel().
Process* parent |
Definition at line 63 of file task_types.hpp.
list_head children |
list of children processes
Definition at line 64 of file task_types.hpp.
Referenced by Process(), and process_exit().
as_linked_list |
node in the parent's children list
Definition at line 65 of file task_types.hpp.
bool exited |
true if the process has exited
Definition at line 67 of file task_types.hpp.
u32 exit_status |
exit status
Definition at line 68 of file task_types.hpp.
Definition at line 70 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 72 of file task_types.hpp.
Referenced by elf_do_fill_process(), platform_context_setup_child_thread(), and process_destroy().
Definition at line 73 of file task_types.hpp.
Referenced by signal_send_to_process(), and thread_allocate().
MMContext* mm |
Definition at line 75 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 76 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 78 of file task_types.hpp.
Referenced by x86_setup_thread_common().
process_signal_info_t signal_info |
signal handling info
Definition at line 80 of file task_types.hpp.
Referenced by Process(), process_do_fork(), and process_register_signal_handler().