Synopsis
int libmem_unlock_all(void);
Description

libmem_unlock_all unlocks all memory using LIBMEM drivers.

libmem_unlock_all returns — The LIBMEM status result.

This function iterates through all registered LIBMEM drivers calling each driver's unlock function specifying the drivers entire memory range as its parameters.

The function will terminate if any of the driver's unlock functions return a result other than LIBMEM_STATUS_SUCCESS.

Example:

int res;

res = libmem_unlock_all();

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