MD_FmIdFromName

Synopsis
#include <md.h>
MD_RV MD_GetFmIdFromName (uint32_t hsmIndex, 
			   char *pName, 
			   uint32_t len, 
			   uint32_t *pFMID);

For HSMs with FMs enabled this function finds the FMID value for a FM based on the FM name.

Input Requirements  

None

Input Parameters
hsmIndex Zero based index of the HSM to query.
pName FM name.
len Length of FM name
pFMID Pointer to where to store the resulting FMID.
Output Requirements  

The function returns the following codes:

Function Code Qualification
MDR_OK No error
MDR_UNSUCCESSFUL If an FM not found
Any other MD_RV error code to indicate error condition.