IBV_OPEN_DEVICE - Online Linux Manual PageSection : 3
Updated : 2006-10-31
Source : libibverbs
Note : Libibverbs Programmer's Manual
NAMEibv_open_device, ibv_close_device − open and close an RDMA device context
SYNOPSIS#include <infiniband/verbs.h>
struct ibv_context *ibv_open_device(struct ibv_device *device");
int ibv_close_device(struct ibv_context *context");
DESCRIPTIONibv_open_device() opens the device device and creates a context for further use. ibv_close_device() closes the device context context.
RETURN VALUEibv_open_device() returns a pointer to the allocated device context, or NULL if the request fails. ibv_close_device() returns 0 on success, −1 on failure.
NOTESibv_close_device() does not release all the resources allocated using context context. To avoid resource leaks, the user should release all associated resources before closing a context. Setting the environment variable **RDMAV_ALLOW_DISASSOC_DESTROY** tells the library to relate an EIO from destroy commands as a success as the kernel resources were already released. This comes to prevent memory leakage in the user space area upon device disassociation. Applications using this flag cannot call ibv_get_cq_event or ibv_get_async_event concurrently with any call to an object destruction function.
SEE ALSOibv_get_device_list(3), ibv_query_device(3), ibv_query_port(3), ibv_query_gid(3), ibv_query_pkey(3)
AUTHORSDotan Barak <dotanba@gmail.com> 0
Johanes Gumabo
Data Size : 5,402 byte
man-i___bv_close_device.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 171,596
Visitor ID : :
Visitor IP : 18.226.166.207 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (rof_TP|38|i___bv_close_device.3|52|EOF|Dotan Barak
)