t4_pmrx_get_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… t4_pmrx_get_stats β€” the Kernel API Manual girlies said what πŸ’…

okay so bestie, we're in section 9 of the Kernel API Manual and today's main character is t4_pmrx_get_stats. no cap, she's a tiny little function but she's literally pulling hardware stats out of PMRX and handing them to you on a platter. slay.


✨ NAME ✨

t4_pmrx_get_stats β€” returns the HW stats from PMRX πŸŽ€

like, that's the whole vibe. she returns the hardware stats, and the stats come from PMRX. periodt.


🌸 SYNOPSIS 🌸

void t4_pmrx_get_stats (struct adapter *adap , u32 cnt[] , u64 cycles[]
);

ok so she's void β€” meaning she doesn't hand you back a return value, she just does the thing and fills in your buffers. very "i don't do drama, i do results" energy πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adap β€” the adapter 🫢 like, the whole network adapter situation we're talking to. she needs to know which one, bestie.
  • cnt β€” where to store the count statistics πŸ“Š this is the spot in memory where the counts land. bring your own array, she's not allocating anything for you.
  • cycles β€” where to store the cycle statistics ⏱️ same deal, different flavour. cycles go here.

πŸ’œ DESCRIPTION πŸ’œ

Returns performance statistics from PMRX. πŸŽ€

that's it, that's the function. she's short, she's sweet, she's iconic, and she's not here to waste your time. you give her an adapter plus two places to stash numbers, and she fills them with PMRX performance stats. the way that she just… does her job? obsessed. πŸ”₯

no hidden lore, no surprises, no gotchas. just stats. 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

okay this list is long long, but every single one of these is a real one and we're not skipping a single name, because we respect the ecosystem. πŸ™ˆ

the kernel file, first and foremost:

  • Kernel file ./drivers/net/ethernet/chelsio/cxgb4/t4_hw.c β€” that's where she lives, that's her home 🏠

and now the whole friend group:

like… that's the whole group chat. every one of them tagged. iykyk πŸ’€


a lil note from me to you 🫢 β€” she fills buffers you own, so make sure cnt and cycles actually point at real, big-enough storage. she's void, she's not checking for you, and she's certainly not going to text you back about it. πŸ’–

and that's the page, bestie! πŸŽ€ this version comes from the source ./drivers/net/ethernet/chelsio... and the date on it is October 2026 β€” so like, screenshot it, save it, whatever, it's canon now. mwah πŸ’‹βœ¨πŸŒŸ

πŸ“¦ where this page comes from