EPICS Multi-Core Utilities
1.2.2-SNAPSHOT
Real-Time Utilities for EPICS IOCs on Multi-Core Linux
Main Page
Modules
Files
File List
Globals
All
Files
Functions
Variables
Typedefs
Macros
Groups
Pages
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
31
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
Generated on Fri Apr 24 2015 05:06:45 for EPICS Multi-Core Utilities by
1.8.3