XenevaOS
Loading...
Searching...
No Matches
_keproc.h
Go to the documentation of this file.
1
32#ifndef __KE_PROC_H__
33#define __KE_PROC_H__
34
35#include <stdint.h>
36#include <_xeneva.h>
37#include <sys\_kesignal.h>
38
39#ifdef __cplusplus
41#endif
42
53
59
65
71
76
84
93 XE_LIB int _KeCreateProcess(int parent_id, char* name);
94
104 XE_LIB int _KeProcessLoadExec(int proc_id, char* filename, int argc, char** argv);
105
112
113
121
128 XE_LIB int _KeSetSignal(int signo, XESigHandler handler);
129
135
140 XE_LIB int _KeCreateThread(void(*entry) (), char *name);
141
149 XE_LIB int _KeSetFileToProcess(int fileno, int dest_fidx, int proc_id);
150
156 XE_LIB int _KeSendSignal(int pid, int signum);
157
164 XE_LIB int _KeProcessGetFileDesc(const char* filename);
165
171
178
185
191
192#ifdef __cplusplus
193}
194#endif
195
196
197#endif
XE_LIB int _KeSetFileToProcess(int fileno, int dest_fidx, int proc_id)
_KeSetFileToProcess – copies a file from one process to other
XE_LIB int _KeProcessGetFileDesc(const char *filename)
XE_LIB int _KeProcessExit()
_KeProcessExit – exits current process
XE_LIB int _KeProcessWaitForTermination(int pid)
_KeProcessWaitForTermination – suspends currently running process until another process state changes
XE_LIB int _KeProcessSleep(uint64_t ms)
_KeProcessSleep – put the current process main thread to sleep mode 1s = 10000 ms
XE_LIB int _KeSendSignal(int pid, int signum)
_KeSendSignal – send a signal to desired process
XE_LIB uint16_t _KeGetThreadID()
_KeGetThreadID – get currently running thread id
XE_LIB int _KeGetProcessID()
_KeGetProcessID – get currently running process id
XE_LIB uint64_t _KeGetEnvironmentBlock()
_KeGetEnvironmentBlock – returns the current environment block of the process
XE_LIB int _KeSetSignal(int signo, XESigHandler handler)
_KeSetSignal – register a new signal handler for this process
XE_LIB int _KeCreateThread(void(*entry)(), char *name)
_KeCreateThread – creates a new thread inside current process slot
XE_LIB int _KeCreateProcess(int parent_id, char *name)
_KeCreateProcess – create a new process slot by taking
XE_LIB int _KeProcessTokenRemoveSelf(uint8_t category)
_KeProcessTokenRemoveSelf – remove self from a token
XE_LIB int _KeProcessLoadExec(int proc_id, char *filename, int argc, char **argv)
_KeProcessLoadExec – loads an executable to a process slot
XE_LIB int _KeProcessTokenAddSelf(uint8_t category)
XE_LIB size_t _KeGetSystemTimerTick()
_KeGetSystemTimerTick – returns the current system timer tick
XE_LIB int _KePauseThread()
_KePauseThread – pause currently running thread
XE_LIB uint64_t _KeGetProcessHeapMem(size_t sz)
_KeGetProcessHeapMem – Grabs some memory from heap memory of current process slot
XE_LIB int _KeProcessTokenGetThreadID(uint8_t category)
_KeProcessTokenGetThreadID – get the thread id of a slot
@ PROCESS_TOKEN_NETWORK
Definition _keproc.h:47
@ PROCESS_TOKEN_AUDIO
Definition _keproc.h:49
@ PROCESS_TOKEN_NETSERVER
Definition _keproc.h:51
@ PROCESS_TOKEN_DEV
Definition _keproc.h:50
@ PROCESS_TOKEN_DISPLAY
Definition _keproc.h:48
void(* XESigHandler)(int signum)
Definition _kesignal.h:75
#define XE_LIB
Definition _xeneva.h:55
#define XE_EXTERN
Definition _xeneva.h:50
unsigned char uint8_t
Definition acefiex.h:161
COMPILER_DEPENDENT_UINT64 uint64_t
Definition acefiex.h:165
unsigned short int uint16_t
Definition acefiex.h:162
void(* entry)(void *)
Definition process.h:93
_proc_tokens_
Definition proctoken.h:50