Implementation of Processes
◆ 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()
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
-
original | Pointer to the original process object or NULL |
- Returns
- Pointer to the new kernel process object
Definition at line 77 of file process.c.
◆ processInfo()
Fills out the processInfo structure with information about each individual process.
- Parameters
-
info | Array where the output should be stored |
count | Length of the buffer in sizes of processInfo |
- Returns
- Number of process which have been stored
Definition at line 265 of file process.c.
◆ processList