EPICS Multi-Core Utilities  1.2.2-SNAPSHOT
Real-Time Utilities for EPICS IOCs on Multi-Core Linux
 All Files Functions Variables Typedefs Macros Groups Pages
Files | Functions
Memory Locking

Add functions for locking the process memory into RAM. More...

Files

file  memLock.c
 Locking process memory into RAM.
 

Functions

epicsShareFunc void mcoreMLock (void)
 iocShell: Lock all process virtual memory into RAM.
 
epicsShareFunc void mcoreMUnlock (void)
 iocShell: Unlock process virtual memory from RAM.
 

Detailed Description

Add functions for locking the process memory into RAM.

Adds functions that allow locking and unlocking the process virtual memory into RAM to make sure no page faults occur, which would introduce unpredictable interruptions and latency.

See man page for mlockall(2) for more details on memory locking.

Linux Security
To allow locking all its memory, under modern Linux systems the process must have a memlock entry in the pam limits module configuration.
See the limits.conf(5) man page for details.

Function Documentation

epicsShareFunc void mcoreMLock ( void  )

iocShell: Lock all process virtual memory into RAM.

IOC Shell
mcoreMLock

Definition at line 34 of file memLock.c.

epicsShareFunc void mcoreMUnlock ( void  )

iocShell: Unlock process virtual memory from RAM.

IOC Shell
mcoreMUnlock

Definition at line 40 of file memLock.c.