irdma_stat_val(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ NAME πŸ‘‘

irdma_stat_val β€” bestie, this is the one that extracts the HW counter value from a statistics buffer. That's it, that's the whole job, and it does it gorgeously ✨

This little icon lives in the Kernel API Manual section of the manual pages β€” page irdma_stat_val(9), in case you were wondering which one of the 400 irdma pages you opened 🫢


✨ SYNOPSIS ✨

u64 irdma_stat_val (const u64 *stats_val , u16 byteoff , u8 bitoff , u64 bitmask );

Like, look at that signature. Four arguments, returns a u64. It's giving "small function, big responsibility" and honestly? No notes πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

Okay so here's the group chat roster of parameters, and yes you need all of them:

  • stats_val β€” a pointer to the statistics buffer. This is the main character, the place where all the counter data actually lives 🌸
  • byteoff β€” the byte offset of the counter value in the buffer, which needs to be 8B-aligned (u16, so it behaves). Don't be messy about this one 🎯
  • bitoff β€” the bit offset of the counter value within that 8B entry (u8). So like… byteoff finds you the entry, bitoff finds you the actual bits inside it. Teamwork, lowkey iconic πŸ’–
  • bitmask β€” the maximum counter value (u64), for example 0xffffff for a 24-bit counter. This is the ceiling, the limit, the "know your worth" of the whole operation πŸ‘‘

Return type is u64, so the value comes back to you as a nice big unsigned integer, hydrated and ready 🧚


πŸ¦‹ SEE ALSO πŸ¦‹

First, the source file, so you can go read the real thing:

  • ./drivers/infiniband/hw/irdma/ctrl.c

And now… the list. The legendary list. The way this page cross-references basically the ENTIRE irdma driver β€” it's giving "everyone is here" 🀯 Enjoy, bestie:


Okay that's the whole page, bestie β€” no gatekeeping, every single cross-reference preserved πŸ’œ

And a cute lil sign-off for the credits, because we always cite our sources 🫢: this page comes from the source tree at ./drivers/infiniband/hw/irdma, dated October 2026, and it's page irdma_stat_val(9) β€” go forth and read your hardware counters with main character energy. Periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from