EFADV_QUERY_CQ(3)
π¦ EFADV_QUERY_CQ β the EFA Direct Verbs manual, bestie edition β¨
okay so this is efadv_query_cq(3), from the EFA Direct Verbs Manual. it's the one that lets you peek at all the device-specific deets on a Completion Queue. lowkey iconic. π
β¨ NAME β¨
efadv_query_cq β query EFA specific Completion Queue attributes π
πΈ SYNOPSIS πΈ
#include <infiniband/efadv.h>
int efadv_query_cq(struct ibv_cq *ibvcq, struct efadv_cq_attr *attr,
uint32_t inlen);
π DESCRIPTION π
efadv_query_cq() queries device-specific Completion Queue attributes. that's it, that's the whole vibe. π«Ά
compatibility is handled using the comp_mask and inlen fields β the way that this struct just knows how to stay compatible? obsessed.
struct efadv_cq_attr {
uint64_t comp_mask;
uint8_t *buffer;
uint32_t entry_size;
uint32_t num_entries;
uint32_t *doorbell;
};
inlenβ In: the size ofstruct efadv_cq_attr. tell it how big the struct is, it's only polite bestie πcomp_maskβ the compatibility mask. keeping everything chill across versions β¨bufferβ the completion queue buffer. the actual goods πentry_sizeβ size of each completion queue entry. every entry living its own main character life π«num_entriesβ maximal number of entries in the completion queue. the max capacity, no cap π₯doorbellβ the reverse doorbell used to update the device of polled entries and to request notifications. it'sNULLwhen not in use for this Completion Queue. no doorbell, no problem π
π RETURN VALUE π
efadv_query_cq() returns 0 on success, or the value of errno on failure (which indicates the failure reason). so if you get a 0, slay. anything else, check errno β it's literally telling you what went wrong π
π¦ SEE ALSO π¦
efadv(7)β go read the big one, iykyk π
π NOTES π
- Compatibility mask (
comp_mask) is an out field and currently has no values. so bestie, it's giving empty β for now β
π AUTHORS π
Michael Margolin mrgolin@amazon.com β the icon who made this happen, periodt π
okay that's the whole page, and yes it's efa (that's the manual name, folded in right up top like a lil name tag π·οΈ), dated 2025-04-15, shipping with version 2025-04-15 of the EFA Direct Verbs Manual. mwah, go forth and query your CQs responsibly bestie πβ¨π§
π¦ where this page comes from
- arch rolling: rdma-core 65.0-1 Β· GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-MIT AND GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-FreeBSD AND GPL-2.0-or-later OR LicenseRef-Intel-BSD-3-Clause AND GPL-2.0-or-later OR LicenseRef-PathScale-BSD-Patent-License AND CC0-1.0 AND MIT AND BSD-2-Clause AND CPL-1.0 OR BSD-2-Clause OR GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms