PxMcGetSize()

Get size of a memory class.

APPLIES TO

1.0.0

SYNOPSIS
PxSize_t PxMcGetSize (PxMc_t mcid);
ARGUMENTS
mcid

The memory class object

RETURN VALUES
  • 0 if mcid is varsized

  • Blocksize if mcid is fixsized

ERROR CODES

PXERR_MC_ILLMC

mcid is not a valid memory class

PXERR_GLOBAL_ILLEGAL_CORE

The requested memory class is not on the same core

DESCRIPTION

PxMcGetSize returns blocksize if mcid is fixsized and 0 otherwise.

IMPLEMENTATION GUIDELINES
Before call
  • mcid must be:

    • a valid PXROS-HR memory class created with a PxMcRequest call (V). The validity of mcid may also be checked by the PxMcIsValid macro (F).

    • the symbolic value PXMcSystemdefault specifying the system memory class (V)

    • the symbolic value PXMcTaskdefault specifying the task’s memory class (V)

After call
  • PxGetError must be called to check if an error has occurred. (F)

Best Practice
  • No restrictions.