IBNOS
Functions | Variables
Processes

Functions

struct processprocessCreate (struct process *original)
 Creates a new kernel process object. More...
 
uint32_t processCount ()
 Returns the number of total processes in the system. More...
 
uint32_t processInfo (struct processInfo *info, uint32_t count)
 Fills out the processInfo structure with information about each individual process. More...
 

Variables

struct linkedList processList = LL_INIT(processList)
 

Detailed Description

Implementation of Processes

Function Documentation

◆ processCount()

uint32_t processCount ( )

Returns the number of total processes in the system.

Returns
Number of processes

Definition at line 245 of file process.c.

◆ processCreate()

struct process* processCreate ( struct process original)

Creates a new kernel process object.

This function allocates and initializes the structure used to store a process. If original is NULL then the new process will have an empty minimal memory layout and empty handle table, otherwise all information will be duplicated from the original process. The process be initialized with a refcount of 1, but each thread inside of it increases the refcount. This allows processes to exist even if there is nothing externally pointing to them.

Parameters
originalPointer to the original process object or NULL
Returns
Pointer to the new kernel process object

Definition at line 77 of file process.c.

◆ processInfo()

uint32_t processInfo ( struct processInfo info,
uint32_t  count 
)

Fills out the processInfo structure with information about each individual process.

Parameters
infoArray where the output should be stored
countLength of the buffer in sizes of processInfo
Returns
Number of process which have been stored

Definition at line 265 of file process.c.

Variable Documentation

◆ processList

struct linkedList processList = LL_INIT(processList)

Definition at line 43 of file process.c.