Package ganeti :: Package utils :: Module mlock
[hide private]
[frames] | no frames]

Module mlock

source code

Wrapper around mlockall(2).

Functions [hide private]
 
Mlockall(_ctypes=ctypes)
Lock current process' virtual address space into RAM.
source code
Variables [hide private]
  ctypes = None
hash(x)
  _MCL_CURRENT = 1
  _MCL_FUTURE = 2

Imports: os, logging, errors


Function Details [hide private]

Mlockall(_ctypes=ctypes)

source code 

Lock current process' virtual address space into RAM.

This is equivalent to the C call mlockall(MCL_CURRENT | MCL_FUTURE). See mlockall(2) for more details. This function requires the ctypes module.

Raises: