Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

fsl_shw_return_t fsl_shw_sfree ( fsl_shw_uco_t user_ctx,
void *  address 
)

Free a block of secure memory that was allocated with fsl_shw_smalloc

Parameters:
user_ctx User context
address Address of the block of secure memory to be released.
Returns:
A return code of type fsl_shw_return_t.

Definition at line 2119 of file shw_driver.c.

References FSL_RETURN_ERROR_S, FSL_RETURN_OK_S, scc_release_partition(), and SCC_RET_OK.

{
      (void)user_ctx;

#ifdef FSL_HAVE_SCC2
      if (scc_release_partition(address) == SCC_RET_OK) {
            return FSL_RETURN_OK_S;
      }
#endif

      return FSL_RETURN_ERROR_S;
}


Generated by  Doxygen 1.6.0   Back to index