umad_alloc(3)

umad_alloc3

Allocate memory for umad buffers

Usage

#include <infiniband/umad.h>

void * umad_alloc(int num, size_t size);

Overview

umad_alloc() allocates memory for an array of num umad buffers of size bytes. Note that size should include the umad_size() plus the length (MAD_BLOCK_SIZE for normal MADs or the length returned from umad_recv() for RMPP MADs).

Return value

umad_alloc() returns NULL if out of memory.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0–9
  2. 10
  3. 11–Arch

Author

Hal Rosenstock <[email protected]>

From rdma-core 65.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.