lib/sw_apps/zynqmp_pmufw/src/pm_requirement.c
static PmRequirement* PmRequirementMalloc(void)
{
	PmRequirement* newReq = NULL;

	if (pmReqTop < ARRAY_SIZE(pmReqData)) {
		newReq = &pmReqData[pmReqTop];
		pmReqTop++;
	} else {
		PmAlert("out of memory!\r\n");
	}

	return newReq;
}
/**
 * PmRequirementMalloc() - Allocate a PmRequirement structure
 *
 * @return      Pointer to the allocated structure or NULL if there is no free
 *              memory
 */
Allocate a PmRequirement structure
@return      Pointer to the allocated structure or NULL if there is no free
memory
Allocate a PmRequirement structure @return Pointer to the allocated structure or NULL if there is no free memory
static PmRequirement* PmRequirementMalloc(void)
{
	PmRequirement* newReq = NULL;
	if (pmReqTop < ARRAY_SIZE(pmReqData)) {
		newReq = &pmReqData[pmReqTop];
		pmReqTop++;
	} else {
		PmAlert("out of memory!\r\n");
	}
	return newReq;
}
static PmRequirement * PmRequirementMalloc ( void ) { PmRequirement * newReq = NULL ; if ( pmReqTop < ARRAY_SIZE ( pmReqData ) ) { newReq = & pmReqData [ pmReqTop ] ; pmReqTop ++ ; } else { PmAlert ( " \r \n " ) ; } return newReq ; }
PmRequirementMalloc() - Allocate a PmRequirement structure
 @return      Pointer to the allocated structure or NULL if there is no free
              memory
PmRequirementMalloc () - Allocate a PmRequirement structure @return Pointer to the allocated structure or NULL if there is no free memory