tx_link_width(9)
π
tx_link_width(9) π
okay so bestie, this page is from the Kernel API Manual, and it's all about one tiny but iconic function: tx_link_width. She converts a link-width bitmask into an integer value that represents the actual link width. lowkey useful, highkey slay. β¨
π NAME π
tx_link_width β convert a link width bitmask to an integer value representing the actual link width.
πΈ SYNOPSIS πΈ
u16 tx_link_width (u16 link_width );
π ARGUMENTS π
link_widthβ the width of the active link. that's the input, bestie π«Ά
β RETURN β
returns the index of the bit set in the link_width var. literally the bit index, no cap π
π¦ DESCRIPTION π¦
so the function converts and returns the index of the bit that's set β and that bit is the one indicating the current link width. it's giving "small function, main character energy." β¨
π₯ SEE ALSO π₯
- Kernel file
./drivers/infiniband/hw/hfi1/mad.cβ plus the whole bestie crew:get_pkeys(9),set_pkeys(9),get_xmit_wait_counters(9),hfi1_pkey_validation_pma(9),hfi1_process_mad(9)π
mwah π this page lives under ./drivers/infiniband/hw/hfi1 and it's dated October 2026 β periodt. π«Άπ
π¦ 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