STRUCT RDMA_RESTRACK_ENTRY(9)
π NAME π
okay bestie, this is the struct rdma_restrack_entry(9) page from the Kernel API Manual, and it is literally about metadata per-entry. Thatβs the whole vibe: per-entry metadata, no cap. β¨
β¨ SYNOPSIS β¨
struct rdma_restrack_entry {
bool valid;
u8 no_track : 1;
struct kref kref;
struct completion comp;
struct task_struct *task;
const char *kern_name;
enum rdma_restrack_type type;
bool user;
u32 id;
};
π Members π
validβ the validity indicator, bestie. Itβs giving βis this entry valid or not.β π
Entries are filled during rdma_restrack_add, and freeing can be attempted during rdma_restrack_del.
For a real example of that, see mlx5 QPs with type MLX5_IB_QPT_HW_GSI. Iconic example behavior, honestly. π¦
no_trackβ βdonβt add this entry to restrack DBβ energy. This field marks an entry that doesnβt need to be added to the internal restrack DB and presented later to users at thenldevquery stage.krefβ protects destroy of the resource. π‘οΈcompβ signals that all consumers of the resource have completed their work. π«Άtaskβ owner of the resource tracking entity.
There are two types of entities: created by user and created by kernel.
This is relevant for the entities created by users. For the entities created by kernel, this pointer will be NULL.
kern_nameβ name of the owner for the kernel-created entities.typeβ various objects in the restrack database.userβ user resource.idβ ID to expose to users.
π¦ SEE ALSO π¦
- Kernel file:
./include/rdma/restrack.h enum rdma_restrack_type(9)rdma_is_kernel_res(9)rdma_restrack_get(9)rdma_restrack_put(9)rdma_restrack_no_track(9)
mwah π source/version: ./include/rdma, dated October 2026, and itβs the struct rdma_restrack_entry(9) page. byeee π«Ά
π¦ 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