SysMCBDAlloc (FUN)
FUNCTION SysMCBDAlloc : POINTER TO CpuCoreBindingDesc
CpuCoreBindingDesc helper function
SysMCBDAlloc allocates a CpuCoreBindingDesc which should be freed with SysMCBDFree after usage. Initializes the nNumOfCores member. In case nNumOfCores > SYSMCBITSPERXWORD an array of appropriate XWORDs is allocated to pulCoreBits.
- InOut:
Scope
Name
Type
Comment
Return
SysMCBDAllocPOINTER TO CpuCoreBindingDesc
Returns a pointer to CpuCoreBindingDesc or 0 if no memory is available.
Input
pResultPOINTER TO RTS_IEC_RESULT
- Pointer to a variable to return an error code (optional)
ERR_OK: A valid pointer is returned.
ERR_NOMEMORY: Not enough memory is available.
ERR_NOTINITIALIZED: Component is not yet initialized.