Locks the specified memory
#include <ringx.h>
int RxLockMemory (
const void *addr,
size_t length);
(IN) Specifies the location of the memory to lock.
(IN) Specifies the number of bytes of memory to lock.
If successful, returns 0. Otherwise returns -1 and sets errno.