SysMCGetTaskBinding (FUN)

FUNCTION SysMCGetTaskBinding : RTS_IEC_RESULT

Function to read the binding of a task to core(s). .. note:: To obtain the binding of the current task hTask may be RTS_INVALID_HANDLE. .. note:: Operating system dependent this function may support only the current task. .. note:: To obtain the CoreIds set in CpuCoreBindingDesc use SysMCBDGetFirstID and SysMCBDGetNextID.

InOut:

Scope

Name

Type

Comment

Return

SysMCGetTaskBinding

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

hTask

RTS_IEC_HANDLE

Handle of the task or RTS_INVALID_HANDLE for current task.

pBindingDesc

POINTER TO CpuCoreBindingDesc

Pointer to the binding description for the core binding.