int libmem_unlock(uint8_t *start, size_t size);
libmem_unlock unlocks a block of memory using a LIBMEM driver.
start — A pointer to the start address of the memory range to unlock.
size — The size of the memory range to unlock in bytes.
libmem_unlock 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.
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);