theKernel 10.0
Loading...
Searching...
No Matches
MkObjectC_Sys_CC_API

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

+ Collaboration diagram for MkObjectC_Sys_CC_API:

Functions

void ccmkkernel::MkObjectC::SysKill (MK_I32 pid, MK_I32 signal) const
 libmkkernel::MkSysKill
 
MK_I32 ccmkkernel::MkObjectC::SysGetPid () const
 libmkkernel::MkSysGetPid
 
static MK_I32 ccmkkernel::MkObjectC::SysHashI32 (MK_STRN key, MK_NUM length=-1)
 libmkkernel::MkSysHashI32
 
static MK_I32 ccmkkernel::MkObjectC::SysHashI32 (const std::string &key, MK_NUM length=-1)
 libmkkernel::MkSysHashI32
 
static MK_STRN ccmkkernel::MkObjectC::SysHashSTR (MK_STRN key, MK_NUM length=-1)
 libmkkernel::MkSysHashSTR
 
static MK_STRN ccmkkernel::MkObjectC::SysHashSTR (const std::string &key, MK_NUM length=-1)
 libmkkernel::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 ccmkkernel specific error codes/messages

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 ccmkkernel specific error codes/messages

Function Documentation

◆ SysGetPid()

MK_I32 ccmkkernel::MkObjectC::SysGetPid ( ) const
inline

libmkkernel::MkSysGetPid

Definition at line 462 of file MkObjectC_inline_cc.hh.

462 {
463 MK_UNUSED auto fmtobj = getOBJN__null_allow();
464 MK_I32 pid_out;
465 enum MkErrorE errVal = MkSysGetPid(fmtobj, &pid_out);
466 MkErrorC_Check(fmtobj, errVal);
467 return pid_out;
468 }
#define MkErrorC_Check(errObj, errVal)
#define MK_UNUSED
mark unnused variables and functions
MkErrorE
collection for the different error-codes …
signed int MK_I32
4 byte integer data-type
MK_OBJN getOBJN__null_allow() const
(const) return the LibMsgqueObject from current MkObjectC instance
enum MkErrorE MkSysGetPid(MK_OBJN fmtobj, MK_I32 *pid_out)
getpid syscall with ccmkkernel error plugin

◆ SysHashI32() [1/2]

MK_I32 ccmkkernel::MkObjectC::SysHashI32 ( const std::string & key,
MK_NUM length = -1 )
inlinestatic

libmkkernel::MkSysHashI32

Definition at line 480 of file MkObjectC_inline_cc.hh.

480 {
482 const MK_STRN key_hdl = key.c_str();
483 MK_I32 __retVal__L = MkSysHashI32(key_hdl, length);
484 return __retVal__L;
485 }
const MK_STRB * MK_STRN
constant string pointer data-type
MK_I32 MkSysHashI32(MK_STRN key, MK_NUM length)
same as MkSysHashSTR but return libmkkernel::MK_I32 …
#define MkRtSetup_NULL

◆ SysHashI32() [2/2]

MK_I32 ccmkkernel::MkObjectC::SysHashI32 ( MK_STRN key,
MK_NUM length = -1 )
inlinestatic

libmkkernel::MkSysHashI32

Definition at line 473 of file MkObjectC_inline_cc.hh.

473 {
475 MK_I32 __retVal__L = MkSysHashI32(key, length);
476 return __retVal__L;
477 }

◆ SysHashSTR() [1/2]

MK_STRN ccmkkernel::MkObjectC::SysHashSTR ( const std::string & key,
MK_NUM length = -1 )
inlinestatic

libmkkernel::MkSysHashSTR

Definition at line 495 of file MkObjectC_inline_cc.hh.

495 {
497 const MK_STRN key_hdl = key.c_str();
498 MK_STRN __retVal__L = MkSysHashSTR(key_hdl, length);
499 return __retVal__L;
500 }
MK_STRN MkSysHashSTR(MK_STRN key, MK_NUM length)
compute the HASH from a string …

◆ SysHashSTR() [2/2]

MK_STRN ccmkkernel::MkObjectC::SysHashSTR ( MK_STRN key,
MK_NUM length = -1 )
inlinestatic

libmkkernel::MkSysHashSTR

Definition at line 488 of file MkObjectC_inline_cc.hh.

488 {
490 MK_STRN __retVal__L = MkSysHashSTR(key, length);
491 return __retVal__L;
492 }

◆ SysKill()

void ccmkkernel::MkObjectC::SysKill ( MK_I32 pid,
MK_I32 signal ) const
inline

libmkkernel::MkSysKill

Definition at line 453 of file MkObjectC_inline_cc.hh.

453 {
454 MK_UNUSED auto fmtobj = getOBJN__null_allow();
455 enum MkErrorE errVal = MkSysKill(fmtobj, pid, signal);
456 MkErrorC_Check(fmtobj, errVal);
457 }
enum MkErrorE MkSysKill(MK_OBJN fmtobj, MK_I32 pid, MK_I32 signal)
kill syscall with ccmkkernel error plugin