logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

umad_alloc - allocate memory for umad buffers

Author

Hal Rosenstock <halr@voltaire.com> OpenIB May 21, 2007 UMAD_ALLOC(3)

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).

Name

umad_alloc - allocate memory for umad buffers

Return Value

umad_alloc() returns NULL if out of memory.

See Also

umad_free(3)

Synopsis

#include<infiniband/umad.h>void*umad_alloc(intnum,size_tsize);

See Also