wait_logical_linkstate(9)
π wait_logical_linkstate β Kernel API Manual, section 9
okay bestie, welcome to wait_logical_linkstate(9) β the kernel API page where we all just sit around waiting for an IB link to get its life together πβ¨
β¨ NAME β¨
wait_logical_linkstate β literally just waiting for an IB link state change to occur π«Ά
πΈ SYNOPSIS πΈ
int wait_logical_linkstate (struct hfi1_pportdata *ppd , u32 state , int
msecs );
π ARGUMENTS π
ppdβ the port device, aka the main character we're checking on πstateβ the state we're waiting for, the vibe we're manifesting π¦msecsβ how many milliseconds we're willing to wait, our patience budget β³
π DESCRIPTION π
So here's the tea: this function waits up to msecs milliseconds for an IB link state change to occur. For now, it takes the easy polling route β no fancy interrupts, no event notifications, just good old-fashioned checking-in-a-loop energy π
It returns 0 if the state was reached, otherwise it hands you back -ETIMEDOUT π (the state did not arrive, and honestly? rude of it).
π¦ SEE ALSO π¦
- Kernel file
./drivers/infiniband/hw/hfi1/chip.cβ go read the source, iykyk π hfi1_addr_from_offset(9)read_csr(9)write_csr(9)get_csr_addr(9)update_xmit_counters(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)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)
like, twenty-four whole cross-references, a full friend group fr fr ππ
ngl if you're waiting on a state that never shows up, you're getting -ETIMEDOUT and that's just the situation π
π and that's the page!! brought to you by ./drivers/infiniband/hw/hfi1, dated October 2026 β mwah, slay, 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