update_xmit_counters(9)
π 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β au16holding 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 π
hfi1_addr_from_offset(9)read_csr(9)write_csr(9)get_csr_addr(9)apply_link_downgrade_policy(9)is_rcv_avail_int(9)is_rcv_urgent_int(9)general_interrupt(9)hfi1_rcd_eoi_intr(9)hfi1_netdev_rx_napi(9)data_vls_operational(9)encode_rcv_header_entry_size(9)hfi1_validate_rcvhdrcnt(9)set_hdrq_regs(9)update_statusp(9)wait_logical_linkstate(9)read_mod_write(9)set_intr_bits(9)set_up_interrupts(9)hfi1_get_qp_map(9)init_qpmap_table(9)init_qos(9)hfi1_init_dd(9)create_pbc(9)
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
- 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