1IBV_OPEN_DEVICE(3)      Libibverbs Programmer's Manual      IBV_OPEN_DEVICE(3)
2
3
4

NAME

6       ibv_open_device, ibv_close_device - open and close an InfiniBand device
7       context
8

SYNOPSIS

10       #include <infiniband/verbs.h>
11
12       struct ibv_context *ibv_open_device(struct ibv_device *device);
13       int ibv_close_device(struct ibv_context *context);
14

DESCRIPTION

16       ibv_open_device() opens the device device and  creates  a  context  for
17       further use.
18
19       ibv_close_device() closes the device context context.
20

RETURN VALUE

22       ibv_open_device() returns a pointer to the allocated device context, or
23       NULL if the request fails.
24
25       ibv_close_device() returns 0 on success, -1 on failure.
26

NOTES

28       ibv_close_device() does not release all the resources  allocated  using
29       context  context.  To avoid resource leaks, the user should release all
30       associated resources before closing a context.
31

SEE ALSO

33       ibv_get_device_list(3),     ibv_query_device(3),     ibv_query_port(3),
34       ibv_query_gid(3), ibv_query_pkey(3)
35

AUTHORS

37       Dotan Barak <dotanb@mellanox.co.il>
38
39
40
41libibverbs                        2006-10-31                IBV_OPEN_DEVICE(3)
Impressum