theKernel 10.0
Loading...
Searching...
No Matches
MkObjectC_Sys_CS_API

MkObjectC - L)anguage A)bstraction L)ayer definition … More...

+ Collaboration diagram for MkObjectC_Sys_CS_API:

Functions

void csmkkernel.MkObjectC.SysKill (int pid, int signal)
 MkSysKill
 
int csmkkernel.MkObjectC.SysGetPid ()
 MkSysGetPid
 
static int csmkkernel.MkObjectC.SysHashI32 (string key, int length=-1)
 MkSysHashI32
 
static string csmkkernel.MkObjectC.SysHashSTR (string key, int length=-1)
 MkSysHashSTR
 

Detailed Description

MkObjectC - L)anguage A)bstraction L)ayer definition …

The LAL is required to give the target of embedding a change to modify the access to system functions. RUBY for example has it's own Thread-Creation function.

All wrappers to access the underlying OS,Languages and system functions are located in this section. Every external Function has additional code to map the OS/System specific error codes/messages into a csmkkernel specific error codes/messages

Function Documentation

◆ SysGetPid()

int csmkkernel.MkObjectC.SysGetPid ( )
inline

MkSysGetPid

Definition at line 656 of file MkObjectC.cs.

656 {
657 Int32 pid_out;
658 MkErrorE errVal = Mk.MkSysGetPid(hdl_null_allow, out pid_out);
659 MkErrorC.Check(hdl_null_allow, errVal);
660 return pid_out;
661 }
csmkkernel.MkKernel Mk
MkErrorE
collection for the different error-codes …

◆ SysHashI32()

static int csmkkernel.MkObjectC.SysHashI32 ( string key,
int length = -1 )
inlinestatic

MkSysHashI32

Definition at line 666 of file MkObjectC.cs.

666 {
667 IntPtr key_cstr = Marshal.StringToHGlobalAnsi(key);
668 Int32 __retVal__L = Mk.MkSysHashI32(key_cstr, length);
669 Marshal.FreeHGlobal(key_cstr);
670 return __retVal__L;
671 }

◆ SysHashSTR()

static string csmkkernel.MkObjectC.SysHashSTR ( string key,
int length = -1 )
inlinestatic

MkSysHashSTR

Definition at line 674 of file MkObjectC.cs.

674 {
675 IntPtr key_cstr = Marshal.StringToHGlobalAnsi(key);
676 IntPtr __retVal__L = Mk.MkSysHashSTR(key_cstr, length);
677 Marshal.FreeHGlobal(key_cstr);
678 return Marshal.PtrToStringAnsi(__retVal__L);
679 }

◆ SysKill()

void csmkkernel.MkObjectC.SysKill ( int pid,
int signal )
inline

MkSysKill

Definition at line 648 of file MkObjectC.cs.

648 {
649 MkErrorE errVal = Mk.MkSysKill(hdl_null_allow, pid, signal);
650 MkErrorC.Check(hdl_null_allow, errVal);
651 }