1ibv_import_device(3)    Libibverbs Programmer’s Manual    ibv_import_device(3)
2
3
4

NAME

6       ibv_import_device - import a device from a given command FD
7

SYNOPSIS

9              #include <infiniband/verbs.h>
10
11              struct ibv_context *ibv_import_device(int cmd_fd);
12

DESCRIPTION

14       ibv_import_device()  returns  an ibv_context pointer that is associated
15       with the given cmd_fd.
16
17       The cmd_fd is obtained from the ibv_context cmd_fd member,  which  must
18       be  dup’d (eg by dup(), SCM_RIGHTS, etc) before being passed to ibv_im‐
19       port_device().
20
21       Once the ibv_context usage has been ended ibv_close_device() should  be
22       called.   This  call may cleanup whatever is needed/opposite of the im‐
23       port including closing the command FD.
24

RETURN VALUE

26       ibv_import_device() returns a pointer to the allocated RDMA context, or
27       NULL if the request fails.
28

SEE ALSO

30       ibv_open_device(3), ibv_close_device(3),
31

AUTHOR

33       Yishai Hadas <yishaih@mellanox.com>
34
35
36
37libibverbs                         2020-5-3               ibv_import_device(3)
Impressum