IBV_GET_SRQ_NUM(3)
π ibv_get_srq_num β the Libibverbs Programmer's Manual, bestie edition π
okay so picture this: you're deep in libibverbs land, page ibv_get_srq_num(3), and you just need the srq number that goes with your shared receive queue. that's it. that's the whole vibe. let's get into it β¨
πΈ SYNOPSIS πΈ
#include <infiniband/verbs.h>
int ibv_get_srq_num(struct ibv_srq *srq, uint32_t *srq_num);
like, literally that's all you need to include and call. iconic behavior only π
π¦ DESCRIPTION π¦
ibv_get_srq_num() hands you back the srq number that belongs to the given XRC shared receive queue. yes bestie, we're talking the XRC kind β no cap π«Ά
srqβ anibv_srqstruct, as defined in<infiniband/verbs.h>. it's giving "the main character" of this function ngl πsrq_numβ an output parameter that holds the returned srq number. so you pass it in empty and it comes back with the goods β¨
π₯ RETURN VALUE π₯
ibv_get_srq_num()returns0on success π- on failure it returns the value of
errno, which is literally telling you the failure reason π
so yeah, check your return value, bestie. 0 = slay, anything else = go read errno π
π SEE ALSO π
the whole friend group fr fr π
π AUTHOR π
Yishai Hadas <yishaih@mellanox.com> β thank you for your service π«‘π
and that's the page!! brought to you by libibverbs, dated 2013-06-26 β the file header says IBV_GET_SRQ_NUM(3) twice because it's extra like that, and honestly? we respect it. mwah πβ¨π
π¦ where this page comes from
- alpine 3.24: rdma-core-doc 61.0-r0 Β· GPL-2.0-only OR BSD-2-Clause
- centos-stream 10: rdma-core-devel 62.0-3.el10 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- ubuntu jammy: libibverbs-dev 39.0-1 Β· BSD-MIT OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms