package core_unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

For keeping your memory in RAM, i.e. preventing it from being swapped out.

module Mcl_flags : sig ... end
val mlockall : Mcl_flags.t list -> unit

Lock all pages in this process's virtual address space into physical memory. See man mlockall for more details.

val munlockall : unit -> unit

Unlock previously locked pages. See man munlockall.