File: 697d7ae1cfe1af4b9264377df95979884266183b

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 (39 lines) | stat: -rw-r--r-- 1,110 bytes parent folder | download | duplicates (2)
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
35
36
37
38
39
.\" Automatically generated by Pandoc 2.9.2.1
.\"
.TH "ibv_import_device" "3" "2020-5-3" "libibverbs" "Libibverbs Programmer\[cq]s Manual"
.hy
.SH NAME
.PP
ibv_import_device - import a device from a given command FD
.SH SYNOPSIS
.IP
.nf
\f[C]
#include <infiniband/verbs.h>

struct ibv_context *ibv_import_device(int cmd_fd);
\f[R]
.fi
.SH DESCRIPTION
.PP
\f[B]ibv_import_device()\f[R] returns an \f[I]ibv_context\f[R] pointer
that is associated with the given \f[I]cmd_fd\f[R].
.PP
The \f[I]cmd_fd\f[R] is obtained from the ibv_context cmd_fd member,
which must be dup\[cq]d (eg by dup(), SCM_RIGHTS, etc) before being
passed to ibv_import_device().
.PP
Once the \f[I]ibv_context\f[R] usage has been ended
\f[I]ibv_close_device()\f[R] should be called.
This call may cleanup whatever is needed/opposite of the import
including closing the command FD.
.SH RETURN VALUE
.PP
\f[B]ibv_import_device()\f[R] returns a pointer to the allocated RDMA
context, or NULL if the request fails.
.SH SEE ALSO
.PP
\f[B]ibv_open_device\f[R](3), \f[B]ibv_close_device\f[R](3),
.SH AUTHOR
.PP
Yishai Hadas <yishaih@mellanox.com>