int libmem_unlock uint8_t *  start,
size_t  size
 

Unlock a block of memory using a LIBMEM driver.

Parameters:
start   A pointer to the start address of the memory range to unlock.
size   The size of the memory range to unlock in bytes.
Returns:
The LIBMEM status result.
This function locates the LIBMEM driver for the address pointed to by start and then calls the LIBMEM driver's unlock function.

Example:

    int res;

    res = libmem_unlock((uint8_t *)0x10000000, 1024);

    if (res == LIBMEM_STATUS_SUCCESS)
      printf("libmem_unlock : success\n");
    else
      printf("libmem_unlock : failed (%d)\n", res);