package ocamlnet

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type shm_descr
type shm_type = [
  1. | `File
  2. | `POSIX
]
val supported_types : shm_type list
type shm_name = [
  1. | `File of string
  2. | `POSIX of string * string
]
val shm_type_of_name : shm_name -> shm_type
val open_shm : ?unique:bool -> shm_name -> Unix.open_flag list -> int -> shm_descr
val create_unique_shm : shm_name -> int -> shm_descr
val name_of_shm : shm_descr -> shm_name
val close_shm : shm_descr -> unit
val chmod_shm : shm_descr -> int -> unit
val chown_shm : shm_descr -> int -> int -> unit
type locking_method = [
  1. | `No_locking
  2. | `Record_locking
]
val best_locking_method : shm_type -> locking_method
type shm_table
type int32_array = (int32, Stdlib.Bigarray.int32_elt, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array1.t
exception Corrupt_file of string
exception Deadlock
val manage : ?pagesize:int -> ?init:int -> locking_method -> shm_descr -> shm_table
val group : shm_table -> ('a -> 'b) -> 'a -> 'b
val add : shm_table -> int32 -> int32_array -> unit
val find : shm_table -> int32 -> int32_array
val find_all : shm_table -> int32 -> int32_array list
val mem : shm_table -> int32 -> bool
val remove : shm_table -> int32 -> unit
val replace : shm_table -> int32 -> int32_array -> unit
val iter : (int32 -> int32_array -> unit) -> shm_table -> unit
val iter_keys : (int32 -> unit) -> shm_table -> unit
val fold : (int32 -> int32_array -> 'a -> 'a) -> shm_table -> 'a -> 'a
val length : shm_table -> int
exception Next
exception Break
val read_blocks : shm_table -> int32 -> (int32_array option -> unit) -> unit
type write_op = [
  1. | `Remove_binding
]
type ctrl_op = [
  1. | `Nop
  2. | `Remove_binding
]
val write_blocks : shm_table -> write_op list -> int32 -> (int32_array option -> ctrl_op) -> unit
val dump : shm_table -> unit
val bigarray : int array -> int32_array
val memory : shm_table -> (int32, Stdlib.Bigarray.int32_elt, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array2.t
OCaml

Innovation. Community. Security.