MOS Source Code
Loading...
Searching...
No Matches
process_t Struct Reference

#include <task_types.h>

+ Collaboration diagram for process_t:

Public Attributes

u32 magic
 
pid_t pid
 
const char * name
 
process_tparent
 
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_tmain_thread
 
list_head threads
 
mm_context_tmm
 
dentry_tworking_directory
 
platform_process_options_t platform_options
 platform per-process flags
 
process_signal_info_t signal_info
 signal handling info
 

Detailed Description

Definition at line 42 of file task_types.h.

Member Data Documentation

◆ magic

u32 magic

Definition at line 44 of file task_types.h.

Referenced by process_allocate(), and process_is_valid().

◆ pid

◆ name

◆ parent

process_t* parent

Definition at line 47 of file task_types.h.

Referenced by _process_do_print(), dump_process(), process_allocate(), and process_exit().

◆ children

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

as_linked_list

node in the parent's children list

Definition at line 49 of file task_types.h.

◆ exited

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().

◆ exit_status

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().

◆ files

◆ main_thread

◆ threads

◆ mm

◆ working_directory

dentry_t* working_directory

Definition at line 60 of file task_types.h.

Referenced by process_do_fork(), process_exit(), and process_new().

◆ platform_options

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().

◆ signal_info

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().


The documentation for this struct was generated from the following file: