mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
fork() stub and QoL improvements
This commit is contained in:
20
syscalls.h
20
syscalls.h
@ -126,6 +126,12 @@ enum NativeSyscalls
|
||||
*/
|
||||
_Sleep,
|
||||
|
||||
/** @brief Fork the current process
|
||||
* @fn int Fork()
|
||||
* This syscall is used to create a new process that is a copy of the current process.
|
||||
*/
|
||||
_Fork,
|
||||
|
||||
/** @brief Wait for a process or a thread
|
||||
* @fn
|
||||
* This syscall is used to wait for a specific process or thread to terminate. It returns the exit code of the process or thread.
|
||||
@ -145,7 +151,7 @@ enum NativeSyscalls
|
||||
_Spawn,
|
||||
|
||||
/** @brief Spawn a new thread
|
||||
* @fn
|
||||
* @fn int SpawnThread(uint64_t InstructionPointer)
|
||||
* This syscall is used to create a new thread within the current process with the provided function and arguments.
|
||||
*/
|
||||
_SpawnThread,
|
||||
@ -168,6 +174,18 @@ enum NativeSyscalls
|
||||
*/
|
||||
_GetCurrentThread,
|
||||
|
||||
/** @brief Get current process ID
|
||||
* @fn int GetCurrentProcessID()
|
||||
* This syscall is used to retrieve information about the current process.
|
||||
*/
|
||||
_GetCurrentProcessID,
|
||||
|
||||
/** @brief Get current thread ID
|
||||
* @fn int GetCurrentThreadID()
|
||||
* This syscall is used to retrieve information about the current thread.
|
||||
*/
|
||||
_GetCurrentThreadID,
|
||||
|
||||
/** @brief Get process by PID
|
||||
* @fn
|
||||
* This syscall is used to retrieve information about a specific process by its PID.
|
||||
|
Reference in New Issue
Block a user