Skip to content

Commit

Permalink
Expose fd of ibv_comp_channel.
Browse files Browse the repository at this point in the history
This allows using pollfd to wait with a timeout, e.g. as in
https://www.rdmamojo.com/2013/03/09/ibv_get_cq_event/

Signed-off-by: Heiner <[email protected]>
  • Loading branch information
heiner committed Feb 19, 2025
1 parent 65bedad commit 71e7499
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyverbs/cq.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ cdef class CompChannel(PyverbsCM):
if isinstance(obj, CQ) or isinstance(obj, CQEX):
self.cqs.add(obj)

@property
def fd(self):
return self.cc.fd


cdef class CQ(PyverbsCM):
"""
Expand Down

0 comments on commit 71e7499

Please sign in to comment.