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
mcoreMUnlock
void mcoreMUnlock(void)
iocShell: Unlock process virtual memory from RAM.
Definition:
memLock.c:40
mcoreMLock
void mcoreMLock(void)
iocShell: Lock all process virtual memory into RAM.
Definition:
memLock.c:34
mcoreutils.h
Generated on Fri Mar 26 2021 16:08:16 for EPICS Multi-Core Utilities by
1.9.1