HNSDV_QUERY_DEVICE(3)
π HNSDV_QUERY_DEVICE(3) π
Okay so welcome to the HNS Direct Verbs Manual, bestie β this is the page for hnsdv_query_device, and it's lowkey giving "one job, done cute" energy. I'm obsessed. β¨
πΈ NAME πΈ
hnsdv_query_device - Query hns device specific attributes.
β¨ SYNOPSIS β¨
#include <infiniband/hnsdv.h>
int hnsdv_query_device(struct ibv_context *context,
struct hnsdv_context *attrs_out);
π DESCRIPTION π
The way that hnsdv_query_device() is literally just here to query hns device specific attributes β it's giving focused, lowkey iconic. No extra lore, no side quests, just device-attribute main character energy. π
π ARGUMENTS π
For context, please see the ibv_query_device(3) man page. That's the vibe check for that argument. π«Ά
π¦ attrs_out π¦
struct hnsdv_context {
uint64_t comp_mask;
uint64_t flags;
uint8_t congest_type;
uint8_t reserved[7];
};
comp_mask β Bitmask specifying what fields in the structure are valid:
HNSDV_CONTEXT_MASK_CONGEST_TYPE: Congestion control algorithm is supported.
congest_type β Bitmask of supported congestion control algorithms.
HNSDV_QP_CREATE_ENABLE_DCQCN: Data Center Quantized Congestion NotificationHNSDV_QP_CREATE_ENABLE_LDCP: Low Delay Control ProtocolHNSDV_QP_CREATE_ENABLE_HC3: Huawei Converged Congestion ControlHNSDV_QP_CREATE_ENABLE_DIP: Destination IP based Quantized Congestion Notification
π₯ RETURN VALUE π₯
hnsdv_query_device() returns 0 on success, or the value of errno on failure (which indicates the failure reason). No cap. Slay. π―
π SEE ALSO π
π NOTES π
flagsis an out field and currently has no values. That's it β the whole note, periodt. π
π AUTHORS π
Junxian Huang <huangjunxian6@hisilicon.com> β shoutout to the author, fr fr. π«Ά
Alright bestie, that's the whole page! Source/version: hns Β· date: 2024-02-06 Β· page: HNSDV_QUERY_DEVICE(3). 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms