3 .TH IBV_OPEN_DEVICE 3 2006-10-31 libibverbs "Libibverbs Programmer's Manual"
5 ibv_open_device, ibv_close_device \- open and close an RDMA device context
8 .B #include <infiniband/verbs.h>
10 .BI "struct ibv_context *ibv_open_device(struct ibv_device " "*device" ");
12 .BI "int ibv_close_device(struct ibv_context " "*context" ");
18 and creates a context for further use.
21 closes the device context
25 returns a pointer to the allocated device context, or NULL if the request fails.
28 returns 0 on success, \-1 on failure.
31 does not release all the resources allocated using context
33 To avoid resource leaks, the user should release all associated
34 resources before closing a context.
36 .BR ibv_get_device_list (3),
37 .BR ibv_query_device (3),
38 .BR ibv_query_port (3),
39 .BR ibv_query_gid (3),
40 .BR ibv_query_pkey (3)
43 Dotan Barak <dotanb@mellanox.co.il>