package core

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

recvmmsg's context comprises data needed by the system call. Setup can be expensive, particularly for many buffers.

NOTE: Unlike most system calls involving iobufs, the lo offset is not respected. Instead, the iobuf is implicity reset (i.e., lo <- lo_min and hi <- hi_max) prior to reading and a flip_lo applied afterward. This is to prevent the memory-unsafe case where an iobuf's lo pointer is advanced and recvmmsg attempts to copy into memory exceeding the underlying bigstring's capacity. If any of the returned iobufs have had their underlying bigstring or limits changed (e.g., through a call to set_bounds_and_buffer or narrow_lo), the call will fail with EINVAL.

type t
val create : (Core.read_write, Iobuf.seek) Iobuf.t array -> t

Do not change these Iobuf's bufs or limits before calling recvmmsg_assume_fd_is_nonblocking.

OCaml

Innovation. Community. Security.