SysMCGetProcessBinding (FUN)

FUNCTION SysMCGetProcessBinding : RTS_IEC_RESULT

Function to read the binding of a process to core(s). .. note:: To obtain the binding of the current process hProcess may be RTS_INVALID_HANDLE. .. note:: To obtain the CoreIds set in CpuCoreBindingDesc use SysMCBDGetFirstID and SysMCBDGetNextID.

InOut:

Scope

Name

Type

Comment

Return

SysMCGetProcessBinding

RTS_IEC_RESULT

Returns the result.
  • ERR_OK: Call was successful.

  • ERR_PARAMETER: Parameter is invalid.

  • ERR_FAILED: Function failed for any reason on OS level.

  • ERR_NOTIMPLEMENTED: Function is not implemented.

  • ERR_NOT_SUPPORTED: Function is not supported.

Input

hProcess

RTS_IEC_HANDLE

Handle of the process or RTS_INVALID_HANDLE for current process.

pBindingDesc

POINTER TO CpuCoreBindingDesc

Pointer to the binding description for the core binding.