This command is used to request the contents of the pragma statement in the requested group's definition, if one exists. On return from this call, the confirm buffer contains the text from the pragma statement associated with the group requested. iCnfCount in the command block is always set to 1.
The format for the command block is: ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
Variable Name
³ Table 29. DmiListGroupPragmaReq Command Block ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ OFFSET ³ SIZE ³ TYPE ³ VARIABLE NAME ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ 0 ³ 64 ³ STRUCT ³ DmiMgmtCommand ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ 64 ³ 4 ³ INT ³ iComponentId ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ 68 ³ 4 ³ INT ³ iGroupId ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ 72 ³ 4 ³ INT ³ iOffset ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
DmiMgmtCommand
Variable Description
Issuing DmiListGroupPragmaReq displays an example of how to issue the DmiListGroupPragmaReq
command to the MI. IssuingDmiListGroupPragmaReq
ULONG IssueLoadPragma(ULONG Comp,ULONG Group) { DMI_ListGroupPragmaReq_t *ListPragma; ULONG RC; ListPragma = (DMI_ListGroupPragmaReq_t *) malloc(sizeof(DMI_ListGroupPragmaReq_t)); memset((void *)ListPragma,0,sizeof(DMI_ListGroupPragmaReq_t)); ListDesc->iGroupId = Group; ListDesc->iComponentId = Comp; ListDesc->iOffset = 0; // start at the beginning of the Pragma ListDesc->DmiMgmtCommand.iLevelCheck = DMI_LEVEL_CHECK; ListDesc->DmiMgmtCommand.iMgmtHandle = YOUR_MGMT_HANDLE; ListDesc->DmiMgmtCommand.iCmdHandle = YOUR_COMMAND_HANDLE; ListDesc->DmiMgmtCommand.iCnfBufLen = 4000UL;// set size of the response ListDesc->DmiMgmtCommand.pCnfBuf = (void *)malloc(4000UL); // set rsp ptr ListDesc->DmiMgmtCommand.iRequestCount = 1; ListDesc->DmiMgmtCommand.iCmdLen = sizeof(DMI_ListGroupPragmaReq_t); // set the command ListDesc->DmiMgmtCommand.iCommand = DmiListGroupPragmaCmd; // now we can call the service layer if((RC = DmiInvoke((DMI_MgmtCommand_t *)ListPragma)) != SLERR_NO_ERROR) { free(ListPragma->DmiMgmtCommand.pCnfBuf); free(ListPragma); } return RC; }