Skip to content

Recent Posts

void ibv_ack_async_event(struct ibv_async_event *event);void ibv_ack_async_event(struct ibv_async_event *event); Description ibv_ack_async_event() acknowledge an asynchronous event that was read using ibv_get_async_event(). In order to prevent races, all of the asynchronous events that were read using ibv_get_async_event() must be acknowledged using ibv_ack_async_event(). When calling...

int ibv_get_async_event(struct ibv_context *context, struct ibv_async_event *event);int ibv_get_async_event(struct ibv_context *context, struct ibv_async_event *event); Description ibv_get_async_event() reads the next asynchronous event for an RDMA device context context. After calling ibv_open_device() all of the asynchronous events are being enqueued to this context,...

int ibv_query_gid(struct ibv_context *context, uint8_t port_num, int index, union ibv_gid *gid)int ibv_query_gid(struct ibv_context *context, uint8_t port_num, int index, union ibv_gid *gid) Description ibv_query_gid() returns the value of an index in The GID table of an RDMA device port's. The content...

int ibv_query_pkey(struct ibv_context *context, uint8_t port_num, int index, uint16_t *pkey)int ibv_query_pkey(struct ibv_context *context, uint8_t port_num, int index, uint16_t *pkey) Description ibv_query_pkey() returns the value of an index in The P_Key table of an RDMA device port's. The content of the...

int ibv_query_port(struct ibv_context *context, uint8_t port_num, struct ibv_port_attr *port_attr);int ibv_query_port(struct ibv_context *context, uint8_t port_num, struct ibv_port_attr *port_attr); Description ibv_query_port() returns the attributes of a port of an RDMA device context. Here is the full description of struct ibv_port_attr: Name Protocol...

int ibv_query_device(struct ibv_context *context, struct ibv_device_attr *device_attr);int ibv_query_device(struct ibv_context *context, struct ibv_device_attr *device_attr); Description ibv_query_device() returns the attributes of an RDMA device that is associated with a context. Here is the full description of struct ibv_device_attr: Name Description fw_ver A NULL...

int ibv_close_device(struct ibv_context *context);int ibv_close_device(struct ibv_context *context); Description ibv_close_device() closes an RDMA device context. ibv_close_device() won't release the resources that are associated with this context. It is up to the user to release them before calling to this verb, in order...

struct ibv_context *ibv_open_device(struct ibv_device *device);struct ibv_context *ibv_open_device(struct ibv_device *device); Description ibv_open_device() creates a context for the RDMA device device. This context will later be used to query its resources or for creating resources and should be released with ibv_close_device(). Unlike...

uint64_t ibv_get_device_guid(struct ibv_device *device);uint64_t ibv_get_device_guid(struct ibv_device *device); Description ibv_get_device_guid() returns the Global Unique IDentifier (GUID) of the RDMA device device. This GUID, that was assigned to this device by its vendor during the manufacturing, is unique and can be used...

const char *ibv_get_device_name(struct ibv_device *device);const char *ibv_get_device_name(struct ibv_device *device); Description ibv_get_device_name() returns a string of the name, which is associated with the RDMA device device. This name is unique within a specific machine (the same name cannot be assigned to...