aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2019-01-10 21:02:24 +0000
committerJason Gunthorpe <[email protected]>2019-01-21 21:33:08 +0000
commitd79af7242bb237d00e40092810e6828fbb929d2d (patch)
tree7f85b5b6562306c00edf2b86981066779c02862b /tools/perf/util/c++/clang.cpp
parentIB/hfi1: Add limit test for RC/UC send via loopback (diff)
downloadkernel-d79af7242bb237d00e40092810e6828fbb929d2d.tar.gz
kernel-d79af7242bb237d00e40092810e6828fbb929d2d.zip
RDMA/device: Expose ib_device_try_get(()
It turns out future patches need this capability quite widely now, not just for netlink, so provide two global functions to manage the registration lock refcount. This also moves the point the lock becomes 1 to within ib_register_device() so that the semantics of the public API are very sane and clear. Calling ib_device_try_get() will fail on devices that are only allocated but not yet registered. Signed-off-by: Jason Gunthorpe <[email protected]> Reviewed-by: Steve Wise <[email protected]> Reviewed-by: Parav Pandit <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions