include/uapi/rdma/hns-abi.h
Source file repositories/reference/linux-study-clean/include/uapi/rdma/hns-abi.h
File Facts
- System
- Linux kernel
- Corpus path
include/uapi/rdma/hns-abi.h- Extension
.h- Size
- 3973 bytes
- Lines
- 157
- Domain
- Repository Root And Misc
- Bucket
- include
- Inferred role
- Repository Root And Misc: implementation source
- Status
- source implementation candidate
Why This File Exists
Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.h
Detected Declarations
struct hns_roce_ib_create_cqstruct hns_roce_ib_create_cq_respstruct hns_roce_ib_create_srqstruct hns_roce_ib_create_srq_respstruct hns_roce_ib_create_qpstruct hns_roce_ib_create_qp_respstruct hns_roce_ib_modify_qp_respstruct hns_roce_ib_alloc_ucontext_respstruct hns_roce_ib_alloc_ucontextstruct hns_roce_ib_alloc_pd_respstruct hns_roce_ib_create_ah_respenum hns_roce_cq_cap_flagsenum hns_roce_srq_cap_flagsenum hns_roce_srq_cap_flags_respenum hns_roce_congest_type_flagsenum hns_roce_create_qp_comp_maskenum hns_roce_qp_cap_flags
Annotated Snippet
struct hns_roce_ib_create_cq {
__aligned_u64 buf_addr;
__aligned_u64 db_addr;
__u32 cqe_size;
__u32 reserved;
};
enum hns_roce_cq_cap_flags {
HNS_ROCE_CQ_FLAG_RECORD_DB = 1 << 0,
};
struct hns_roce_ib_create_cq_resp {
__aligned_u64 cqn; /* Only 32 bits used, 64 for compat */
__aligned_u64 cap_flags;
};
enum hns_roce_srq_cap_flags {
HNS_ROCE_SRQ_CAP_RECORD_DB = 1 << 0,
};
enum hns_roce_srq_cap_flags_resp {
HNS_ROCE_RSP_SRQ_CAP_RECORD_DB = 1 << 0,
};
struct hns_roce_ib_create_srq {
__aligned_u64 buf_addr;
__aligned_u64 db_addr;
__aligned_u64 que_addr;
__u32 req_cap_flags; /* Use enum hns_roce_srq_cap_flags */
__u32 reserved;
};
struct hns_roce_ib_create_srq_resp {
__u32 srqn;
__u32 cap_flags; /* Use enum hns_roce_srq_cap_flags */
};
enum hns_roce_congest_type_flags {
HNS_ROCE_CREATE_QP_FLAGS_DCQCN,
HNS_ROCE_CREATE_QP_FLAGS_LDCP,
HNS_ROCE_CREATE_QP_FLAGS_HC3,
HNS_ROCE_CREATE_QP_FLAGS_DIP,
};
enum hns_roce_create_qp_comp_mask {
HNS_ROCE_CREATE_QP_MASK_CONGEST_TYPE = 1 << 0,
};
struct hns_roce_ib_create_qp {
__aligned_u64 buf_addr;
__aligned_u64 db_addr;
__u8 log_sq_bb_count;
__u8 log_sq_stride;
__u8 sq_no_prefetch;
__u8 reserved[5];
__aligned_u64 sdb_addr;
__aligned_u64 comp_mask; /* Use enum hns_roce_create_qp_comp_mask */
__aligned_u64 create_flags;
__aligned_u64 cong_type_flags;
};
enum hns_roce_qp_cap_flags {
HNS_ROCE_QP_CAP_RQ_RECORD_DB = 1 << 0,
HNS_ROCE_QP_CAP_SQ_RECORD_DB = 1 << 1,
HNS_ROCE_QP_CAP_OWNER_DB = 1 << 2,
HNS_ROCE_QP_CAP_DIRECT_WQE = 1 << 5,
};
struct hns_roce_ib_create_qp_resp {
__aligned_u64 cap_flags;
__aligned_u64 dwqe_mmap_key;
};
struct hns_roce_ib_modify_qp_resp {
__u8 tc_mode;
__u8 priority;
__u8 reserved[6];
};
enum {
HNS_ROCE_EXSGE_FLAGS = 1 << 0,
HNS_ROCE_RQ_INLINE_FLAGS = 1 << 1,
HNS_ROCE_CQE_INLINE_FLAGS = 1 << 2,
};
enum {
HNS_ROCE_RSP_EXSGE_FLAGS = 1 << 0,
HNS_ROCE_RSP_RQ_INLINE_FLAGS = 1 << 1,
HNS_ROCE_RSP_CQE_INLINE_FLAGS = 1 << 2,
};
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct hns_roce_ib_create_cq`, `struct hns_roce_ib_create_cq_resp`, `struct hns_roce_ib_create_srq`, `struct hns_roce_ib_create_srq_resp`, `struct hns_roce_ib_create_qp`, `struct hns_roce_ib_create_qp_resp`, `struct hns_roce_ib_modify_qp_resp`, `struct hns_roce_ib_alloc_ucontext_resp`, `struct hns_roce_ib_alloc_ucontext`, `struct hns_roce_ib_alloc_pd_resp`.
- Atlas domain: Repository Root And Misc / include.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.