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 β€” an ibv_srq struct, 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() returns 0 on 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