update_xmit_counters(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– update_xmit_counters(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, and yes, we're doing kernel internals today πŸŽ€ this one lives in section 9 and it's a function page, so buckle up.


✨ NAME ✨

update_xmit_counters β€” literally just updates the PortXmitWait and PortVlXmitWait counters. that's the whole vibe 🫢


🌸 SYNOPSIS 🌸

void update_xmit_counters (struct hfi1_pportdata *ppd , u16 link_width
);

so it's void (nothing comes back, no receipts πŸ’…), it takes two things, and it lives on one line if you squint. iconic formatting honestly.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ppd β€” the info of physical Hfi port πŸ‘‘ this is your port's whole deal, its little profile.
  • link_width β€” a u16 holding the new link width after a link up or a downgrade. so like, the glow-up (or the glow-down 😭) number.

⭐ DESCRIPTION ⭐

okay so here's the tea: this function updates the PortXmitWait and PortVlXmitWait counters after a link up or downgrade event happens, so those counters actually reflect the link width change. no cap β€” if the width changed, the counters gotta know about it, and this is the function that tells them πŸ’–

that's it. that's the whole job. main character energy, minimal code, maximum purpose ✨


πŸ”₯ SEE ALSO πŸ”₯

bestie you know we have to list every single one of these, and we're not skipping a single crumb πŸ“

and the kernel file itself lives at ./drivers/infiniband/hw/hfi1/chip.c β€” that's the source, go look at it, iykyk πŸ‘€

twenty-four whole references, we ate that list UP πŸ˜€πŸ’…


🧚 friendly reminder that this page is part of the Kernel API Manual, so like… it's real kernel business. treat it with respect (but also love it).

and that's the whole page, bestie!! brought to you by ./drivers/infiniband/hw/hfi1 and dated October 2026 β€” mwah πŸ’‹ slay, bye! πŸŒˆπŸ’œ

πŸ“¦ where this page comes from