EPICS Multi-Core Utilities  1.2.3-SNAPSHOT
Real-Time Utilities for EPICS IOCs on Multi-Core Linux
memLock.c
Go to the documentation of this file.
1 /********************************************/
21 #include <stdio.h>
22 #include <string.h>
23 #include <errno.h>
24 #include <sys/mman.h>
25 
26 #include <errlog.h>
27 #include <shareLib.h>
28 
30 #define epicsExportSharedSymbols
32 #include "mcoreutils.h"
33 
34 void mcoreMLock(void) {
35  if (mlockall(MCL_CURRENT|MCL_FUTURE)) {
36  errlogPrintf("mlockall error %s\n", strerror(errno));
37  }
38 }
39 
40 void mcoreMUnlock(void) {
41  if (munlockall()) {
42  errlogPrintf("munlockall error %s\n", strerror(errno));
43  }
44 }
45 
void mcoreMUnlock(void)
iocShell: Unlock process virtual memory from RAM.
Definition: memLock.c:40
void mcoreMLock(void)
iocShell: Lock all process virtual memory into RAM.
Definition: memLock.c:34