2 .\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md
4 .TH IBV_OPEN_DEVICE 3 2006-10-31 libibverbs "Libibverbs Programmer's Manual"
6 ibv_open_device, ibv_close_device \- open and close an RDMA device context
9 .B #include <infiniband/verbs.h>
11 .BI "struct ibv_context *ibv_open_device(struct ibv_device " "*device" ");
13 .BI "int ibv_close_device(struct ibv_context " "*context" ");
19 and creates a context for further use.
22 closes the device context
26 returns a pointer to the allocated device context, or NULL if the request fails.
29 returns 0 on success, \-1 on failure.
32 does not release all the resources allocated using context
34 To avoid resource leaks, the user should release all associated
35 resources before closing a context.
37 .BR ibv_get_device_list (3),
38 .BR ibv_query_device (3),
39 .BR ibv_query_port (3),
40 .BR ibv_query_gid (3),
41 .BR ibv_query_pkey (3)
44 Dotan Barak <dotanba@gmail.com>