rdma_alloc_hw_stats_struct(9)
π rdma_alloc_hw_stats_struct β a.k.a. the Kernel API Manual era π
okay so bestie, welcome to the <pink>Kernel API Manual</pink>, and today's main character is rdma_alloc_hw_stats_struct(9). she's a little helper function, and her whole job is literally just allocating a dynamic struct for the drivers π«Ά
β¨ NAME β¨
rdma_alloc_hw_stats_struct β the helper function that allocates a dynamic struct for the drivers, no cap π
πΈ SYNOPSIS πΈ
struct rdma_hw_stats * rdma_alloc_hw_stats_struct (const struct
rdma_stat_desc *descs , int num_counters , unsigned long lifespan );
like, that's the whole signature, copy it exactly please, she's iconic and we don't edit her π
π¦ ARGUMENTS π¦
descsβ the array of static descriptors. yes bestie, static descriptors, they're just sitting there being static. slay.num_countersβ the number of elements in that array. that's it, that's the vibe check. π₯lifespanβ the milliseconds between updates. milliseconds!! not seconds, not hours, milli. periodt. β±οΈ
π SEE ALSO π
okay so this is the part where I need you to stay with me because the list is long and she ate every single time. first up, the kernel file:
./drivers/infiniband/core/verbs.c
and then the whole friend group, fr fr:
__ib_alloc_pd(9)ib_dealloc_pd_user(9)rdma_copy_ah_attr(9)rdma_replace_ah_attr(9)rdma_move_ah_attr(9)rdma_create_ah(9)rdma_create_user_ah(9)rdma_move_grh_sgid_attr(9)rdma_destroy_ah_attr(9)ib_create_srq_user(9)ib_create_qp_user(9)ib_resolve_eth_dmac(9)ib_modify_qp_with_udata(9)ib_alloc_mr(9)ib_alloc_mr_integrity(9)ib_alloc_xrcd_user(9)ib_dealloc_xrcd_user(9)ib_create_wq(9)ib_destroy_wq_user(9)ib_map_mr_sg_pi(9)ib_map_mr_sg(9)ib_sg_to_pages(9)ib_drain_sq(9)ib_drain_rq(9)ib_drain_qp(9)rdma_free_hw_stats_struct(9)
also the directory ./drivers/infiniband/core gets a shoutout because that's where all the lore lives π
ngl bestie, if you're gonna call the alloc function, you highkey owe it to yourself to read rdma_free_hw_stats_struct(9) too β she's literally right there at the end of the list π
mwah π that's the page. this lil beauty comes to you from the <lavender>Kernel API Manual</lavender>, lives in <mint>./drivers/infiniband/core</mint>, and the date on her birth certificate says <yellow>October 2026</yellow> β and the manual still calls her <rainbow>rdma_alloc_hw_stats_struct(9)</rainbow> because obviously, that's her name, iykyk β¨π
π¦ 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