PatchworkOS
Loading...
Searching...
No Matches
process_t Struct Reference

Process structure. More...

#include <process.h>

Public Member Functions

 _Atomic (priority_t) priority
 
 _Atomic (uint64_t) status
 

Data Fields

ref_t ref
 
pid_t id
 
argv_t argv
 
space_t space
 
vfs_ctx_t vfsCtx
 
futex_ctx_t futexCtx
 
wait_queue_t dyingWaitQueue
 
atomic_bool isDying
 
process_threads_t threads
 
rwlock_t childrenLock
 
list_entry_t siblingEntry
 
list_t children
 
list_entry_t zombieEntry
 
struct process * parent
 
dentry_tdir
 The /proc/[pid] directory for this process.
 
dentry_tprioFile
 The /proc/[pid]/prio file.
 
dentry_tcwdFile
 The /proc/[pid]/cwd file.
 
dentry_tcmdlineFile
 The /proc/[pid]/cmdline file.
 
dentry_tnoteFile
 The /proc/[pid]/note file.
 
dentry_twaitFile
 The /proc/[pid]/wait file.
 
mount_tself
 The /proc/[pid]/self mount point.
 

Detailed Description

Process structure.

Definition at line 52 of file process.h.

Member Function Documentation

◆ _Atomic() [1/2]

process_t::_Atomic ( priority_t  )

◆ _Atomic() [2/2]

process_t::_Atomic ( uint64_t  )

Field Documentation

◆ argv

◆ children

list_t process_t::children

Definition at line 68 of file process.h.

Referenced by process_free(), and process_init().

◆ childrenLock

rwlock_t process_t::childrenLock

Definition at line 66 of file process.h.

Referenced by process_free(), and process_init().

◆ cmdlineFile

dentry_t* process_t::cmdlineFile

The /proc/[pid]/cmdline file.

Definition at line 74 of file process.h.

Referenced by process_dir_init(), and process_init().

◆ cwdFile

dentry_t* process_t::cwdFile

The /proc/[pid]/cwd file.

Definition at line 73 of file process.h.

Referenced by process_dir_init(), and process_init().

◆ dir

dentry_t* process_t::dir

The /proc/[pid] directory for this process.

Definition at line 71 of file process.h.

Referenced by process_dir_init(), and process_init().

◆ dyingWaitQueue

wait_queue_t process_t::dyingWaitQueue

◆ futexCtx

futex_ctx_t process_t::futexCtx

Definition at line 62 of file process.h.

Referenced by process_free(), process_init(), and SYSCALL_DEFINE().

◆ id

◆ isDying

atomic_bool process_t::isDying

◆ noteFile

dentry_t* process_t::noteFile

The /proc/[pid]/note file.

Definition at line 75 of file process.h.

Referenced by process_dir_init(), and process_init().

◆ parent

struct process* process_t::parent

Definition at line 70 of file process.h.

Referenced by process_free(), process_init(), and process_is_child().

◆ prioFile

dentry_t* process_t::prioFile

The /proc/[pid]/prio file.

Definition at line 72 of file process.h.

Referenced by process_dir_init(), and process_init().

◆ ref

ref_t process_t::ref

Definition at line 54 of file process.h.

Referenced by process_init(), and process_kill().

◆ self

mount_t* process_t::self

The /proc/[pid]/self mount point.

Definition at line 77 of file process.h.

Referenced by process_dir_init(), and process_init().

◆ siblingEntry

list_entry_t process_t::siblingEntry

Definition at line 67 of file process.h.

Referenced by process_free(), and process_init().

◆ space

◆ threads

process_threads_t process_t::threads

◆ vfsCtx

◆ waitFile

dentry_t* process_t::waitFile

The /proc/[pid]/wait file.

Definition at line 76 of file process.h.

Referenced by process_dir_init(), and process_init().

◆ zombieEntry

list_entry_t process_t::zombieEntry

Definition at line 69 of file process.h.

Referenced by process_init().


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