1UMAD_ALLOC(3) OpenIB Programmer's Manual UMAD_ALLOC(3)
2
3
4
6 umad_alloc - allocate memory for umad buffers
7
9 #include <infiniband/umad.h>
10
11 void * umad_alloc(int num, size_t size);
12
14 umad_alloc() allocates memory for an array of num umad buffers of size
15 bytes. Note that size should include the umad_size() plus the length
16 (MAD_BLOCK_SIZE for normal MADs or the length returned from umad_recv()
17 for RMPP MADs).
18
20 umad_alloc() returns NULL if out of memory.
21
23 umad_free(3)
24
26 Hal Rosenstock <halr@voltaire.com>
27
28
29
30OpenIB May 21, 2007 UMAD_ALLOC(3)