rdma_alloc_hw_stats_struct(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:

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