ENUM RDMA_RESTRACK_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

enum rdma_restrack_type β€” literally the list of HW objects we're tracking πŸ’…

okay so real talk, this is from the Kernel API Manual, section 9, and it's the enum that names every hardware thing the restrack code keeps an eye on. bestie, it's giving "guest list for the resource-tracking party" and everyone's invited πŸŽ€


✨ SYNOPSIS ✨

enum rdma_restrack_type {
    RDMA_RESTRACK_PD ,
    RDMA_RESTRACK_CQ ,
    RDMA_RESTRACK_QP ,
    RDMA_RESTRACK_CM_ID ,
    RDMA_RESTRACK_MR ,
    RDMA_RESTRACK_CTX ,
    RDMA_RESTRACK_COUNTER ,
    RDMA_RESTRACK_SRQ ,
    RDMA_RESTRACK_DMAH ,
    RDMA_RESTRACK_COMP_CNTR ,
    RDMA_RESTRACK_MAX

};

no cap, that's the whole roster 🫢


πŸŽ€ CONSTANTS πŸŽ€

every single member, in order, zero skips πŸ”₯

  • RDMA_RESTRACK_PD β€” Protection domain (PD). the og safety bubble ✨
  • RDMA_RESTRACK_CQ β€” Completion queue (CQ). where your finished work gets its moment πŸ‘‘
  • RDMA_RESTRACK_QP β€” Queue pair (QP). iconic duo behavior, always a pair πŸ¦‹
  • RDMA_RESTRACK_CM_ID β€” Connection Manager ID (CM_ID). the ID that handles the connection-manager of it all πŸ’…
  • RDMA_RESTRACK_MR β€” Memory Region (MR). bestie's memory, registered and everything 🧠
  • RDMA_RESTRACK_CTX β€” Verbs contexts (CTX). the context girlies 🌸
  • RDMA_RESTRACK_COUNTER β€” Statistic Counter. numbers go up, we love to see it ⭐
  • RDMA_RESTRACK_SRQ β€” Shared receive queue (SRQ). sharing is caring, fr fr πŸ’–
  • RDMA_RESTRACK_DMAH β€” DMA handle. hold it gently πŸ™ˆ
  • RDMA_RESTRACK_COMP_CNTR β€” Completion Counter. the other counter, also counting 🌈
  • RDMA_RESTRACK_MAX β€” Last entry, used for array dclarations. yes bestie, it's the sentinel, it sits at the end so array declarations have somewhere to stop, don't @ me πŸ”₯
lowkey important: RDMA_RESTRACK_MAX isn't a real trackable object, it just marks the end of the list β€” it's the "no more entries" sign on the door πŸšͺ

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/rdma/restrack.h, plus these absolute icons:

go read them, they ate πŸ’…βœ¨


and that's the whole page, bestie 🫢 this one lives in ./include/rdma, dated October 2026 β€” mwah, hope this helped, now go track those HW objects responsibly πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from