[PATCH 2/2] RDMA core: Document QP @event_handler function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add helpful warning for RDMA consumer implementers.

Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
---
 include/rdma/ib_verbs.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index e950c2a..030f62a 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -1137,7 +1137,9 @@ enum ib_qp_create_flags {
  */
 
 struct ib_qp_init_attr {
+	/* Consumer's event_handler callback must not block */
 	void                  (*event_handler)(struct ib_event *, void *);
+
 	void		       *qp_context;
 	struct ib_cq	       *send_cq;
 	struct ib_cq	       *recv_cq;




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux