lib/sw_apps/zynqmp_pmufw/src/pm_requirement.c
static void PmRequirementLink(PmRequirement* const req)
{
	if (NULL != req->master) {
		/* The req structure is becoming master's head of requirements list */
		req->nextSlave = req->master->reqs;
		req->master->reqs = req;
	}

	/* The req is becoming the head of slave's requirements list as well */
	req->nextMaster = req->slave->reqs;
	req->slave->reqs = req;
}
/**
 * PmRequirementLink() - Link requirement struct into master's and slave's lists
 * @req	Pointer to the requirement structure to be linked in lists
 */
Link requirement struct into master's and slave's lists
@req Pointer to the requirement structure to be linked in lists
Link requirement struct into master ' s and slave ' s lists @req Pointer to the requirement structure to be linked in lists
static void PmRequirementLink(PmRequirement* const req)
{
	if (NULL != req->master) {
		req->nextSlave = req->master->reqs;
		req->master->reqs = req;
	}
	req->nextMaster = req->slave->reqs;
	req->slave->reqs = req;
}
static void PmRequirementLink ( PmRequirement * const req ) { if ( NULL != req -> master ) { req -> nextSlave = req -> master -> reqs ; req -> master -> reqs = req ; } req -> nextMaster = req -> slave -> reqs ; req -> slave -> reqs = req ; }
PmRequirementLink() - Link requirement struct into master's and slave's lists
 @req Pointer to the requirement structure to be linked in lists
PmRequirementLink () - Link requirement struct into master ' s and slave ' s lists @req Pointer to the requirement structure to be linked in lists
/* The req structure is becoming master's head of requirements list */ /* The req is becoming the head of slave's requirements list as well */