ENUM RDMA_RESTRACK_TYPE(9)
πΈ 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:
struct rdma_restrack_entry(9)rdma_is_kernel_res(9)rdma_restrack_get(9)rdma_restrack_put(9)rdma_restrack_no_track(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms