.\" Automatically generated by Pandoc 3.8.2.1
.\"
.TH "EFADV_QUERY_QP_WQS" "3" "2025\-05\-14" "efa" "EFA Direct Verbs Manual"
.SH NAME
efadv_query_qp_wqs \- Query EFA specific Queue Pair work queue
attributes
.SH SYNOPSIS
.IP
.EX
#include \f[B]<infiniband/efadv.h>\f[R]

int efadv_query_qp_wqs(\f[B]struct\f[R] ibv_qp *ibvqp, \f[B]struct\f[R] efadv_wq_attr *sq_attr,
                       \f[B]struct\f[R] efadv_wq_attr *rq_attr, uint32_t inlen);
.EE
.SH DESCRIPTION
\f[B]efadv_query_qp_wqs()\f[R] queries device\-specific Queue Pair work
queue attributes.
.PP
Compatibility is handled using the comp_mask and inlen fields.
.IP
.EX
\f[B]struct\f[R] efadv_wq_attr {
    uint64_t comp_mask;
    uint8_t *buffer;
    uint32_t entry_size;
    uint32_t num_entries;
    uint32_t *doorbell;
    uint32_t max_batch;
    uint8_t reserved[4];
};
.EE
.TP
\f[I]inlen\f[R]
In: Size of struct efadv_wq_attr.
.TP
\f[I]comp_mask\f[R]
Compatibility mask.
.TP
\f[I]buffer\f[R]
Queue buffer.
.TP
\f[I]entry_size\f[R]
Size of each entry in the queue.
.TP
\f[I]num_entries\f[R]
Maximal number of entries in the queue.
.TP
\f[I]doorbell\f[R]
Queue doorbell.
.TP
\f[I]max_batch\f[R]
Maximum batch size for queue submissions.
.SH RETURN VALUE
\f[B]efadv_query_qp_wqs()\f[R] returns 0 on success, or the value of
errno on failure (which indicates the failure reason).
.SH SEE ALSO
\f[B]efadv\f[R](7)
.SH NOTES
.IP \(bu 2
Compatibility mask (comp_mask) is an out field and currently has no
values.
.SH AUTHORS
Michael Margolin \c
.MT mrgolin@amazon.com
.ME \c
