umad_alloc — allocate memory for umad buffers

Synopsis

#include <infiniband/umad.h>

void * umad_alloc(int num, size_t size);

Description

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.

See Also

umad_free(3)

Author

Hal Rosenstock <halr@voltaire.com>

Referenced By

umad_free(3).

May 21, 2007 OpenIB Programmer´s Manual