init_link_config(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

init_link_config β€” bestie, this is the one that sets up a link's SW state ✨ (yes, the software-side bookkeeping, not the vibes)

Quick note before we start: this page lives in the Kernel API Manual (section 9), so like… kernel-API-core, not "type it in your shell" energy 🫢


🌸 SYNOPSIS

void init_link_config (struct link_config *lc , fw_port_cap32_t pcaps ,
fw_port_cap32_t acaps );

πŸŽ€ ARGUMENTS

  • lc β€” pointer to the structure that's holding the link state πŸ‘‘ this is the main character of the whole function
  • pcaps β€” link Port Capabilities ✨ (the potential, the could-be)
  • acaps β€” link current Advertised Port Capabilities 🌈 (the literally right now, what's actually being advertised)

πŸ¦‹ DESCRIPTION

Okay so what this does 🫢 β€” it initializes the SW state that's maintained for each link. That means it sets up the link's capabilities plus the default speed / flow-control / autonegotiation settings. All the starting-lineup defaults, basically. Periodt πŸ’…


πŸ”₯ SEE ALSO

Ngl this is the whole group chat 😭 β€” everyone's invited, no one's left out:

Oh and before I forget β€” the kernel file for all this is ./drivers/net/ethernet/chelsio/cxgb4/t4_hw.c πŸ“‚ that's the address, iykyk.


Okay that's the whole page bestie, go forth and initialize some link state πŸ’–

Sign-off time πŸŽ€ this icon was brought to you by the source/version line ./drivers/net/ethernet/chelsio... and it's dated October 2026 β€” yes, future vibes only, no cap πŸ’…βœ¨

πŸ“¦ where this page comes from