int libmem_lock_all void   ) 
 

Lock all memory using LIBMEM drivers.

Returns:
The LIBMEM status result.
This function iterates through all registered LIBMEM drivers calling each driver's lock function specifying the drivers entire memory range as its parameters.

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

Example:

    int res;

    res = libmem_lock_all();

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