IBV_CREATE_COMP_CHANNEL(3), IBV_DESTROY_COMP_CHANNEL(3)

作成日:2014.05.10

NAME

ibv_create_comp_channel, ibv_destroy_comp_channel - Completion event channel を作成・破壊する。

SYNOPSIS

#include <infiniband/verbs.h>

struct ibv_comp_channel *ibv_create_comp_channel(struct ibv_context *context);
int ibv_destroy_comp_channel(struct ibv_comp_channel *channel);

DESCRIPTION

ibv_create_comp_channel() は RDMA デバイスのコンテキスト context 内に completion event channel を作成する。

ibv_destroy_comp_channel() は completion event channel を channel を破壊する。

Completion event channel に関しては、「InfiniBand プログラムに必要な基礎知識」 8.1 Completion Channel「まず InfiniBand Verbs プログラムを作成してみよう」 8.2 Completion Channel を使ってみるを参照のこと。

RETURN VALUE

ibv_create_comp_channel() は成功した場合、作成した completion event channel へのポインタを返す。 失敗した場合は NULL を返す。

ibv_destroy_comp_channel() は成功した場合、0 を返す。 失敗した場合は、エラーの原因を示す値(errno と同じ)を返す。

NOTES

ibv_destroy_comp_channel()channel に関連付けられた CQ を解放せずに呼び出すと失敗することがある。

SEE ALSO

InfiniBand Verbs API Referenceibv_open_device(3)ibv_create_cq(3)ibv_get_cq_event(3)

AUTHORS

原文 Dotan Barak <dotanba@gmail.com>
原文にない加筆がある。

コメント

コメントを書き込む

TOP    掲示板    戻る
Written by NAKAMURA Minoru, Email: nminoru atmark nminoru dot jp, Twitter:@nminoru_jp