File: umad_alloc.3

package info (click to toggle)
rdma-core 56.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,196 kB
  • sloc: ansic: 171,361; python: 13,724; sh: 2,774; perl: 1,465; makefile: 73
file content (34 lines) | stat: -rw-r--r-- 771 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.\" -*- nroff -*-
.\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md
.\"
.TH UMAD_ALLOC 3  "May 21, 2007" "OpenIB" "OpenIB Programmer's Manual"
.SH "NAME"
umad_alloc \- allocate memory for umad buffers
.SH "SYNOPSIS"
.nf
.B #include <infiniband/umad.h>
.sp
.BI "void * umad_alloc(int " "num" ", size_t " "size");
.fi
.SH "DESCRIPTION"
.B umad_alloc()
allocates memory for an array of
.I num\fR
umad buffers of
.I size
bytes\fR.
Note that
.I size\fR
should include the
.B umad_size()
plus the length (MAD_BLOCK_SIZE for normal MADs or the length returned from
.B umad_recv()
for RMPP MADs).
.SH "RETURN VALUE"
.B umad_alloc()
returns NULL if out of memory.
.SH "SEE ALSO"
.BR umad_free (3)
.SH "AUTHOR"
.TP
Hal Rosenstock <halr@voltaire.com>