igb_phy_has_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the igb_phy_has_link page πŸ’– this one lives in the Kernel API Manual, and it's giving "tiny function, very specific job, absolutely iconic" energy. Let's get into it 🫢


🌸 NAME 🌸

igb_phy_has_link β€” literally just polls the PHY for link πŸ‘€ that's it, that's the whole vibe


πŸŽ€ SYNOPSIS πŸŽ€

s32 igb_phy_has_link (struct e1000_hw *hw , u32 iterations , u32
usec_interval , bool *success );

no cap, that's the exact signature β€” copy it character for character or the compiler will absolutely humble you 😭


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hw β€” pointer to the HW structure 🌈 like, the hardware context you're working with
  • iterations β€” number of times to poll for link πŸ” how many chances you're giving it, bestie
  • usec_interval β€” delay between polling attempts ⏳ the lil breather in between each try
  • success β€” pointer to whether polling was successful or not βœ… the receipts get written here

πŸ’… DESCRIPTION πŸ’…

So here's the tea: this function polls the PHY status register for link, and it does it iterations number of times πŸ”₯ that's the entire bit. Main character behavior honestly.

ngl it's a polling loop, so it's gonna keep checking until it's done checking β€” plan your wait time accordingly πŸ•°οΈ

πŸ‘‘ SEE ALSO πŸ‘‘

If you liked this one, the whole extended universe is right here β€” go read the source, it's literally in the kernel tree:

Kernel file ./drivers/net/ethernet/intel/igb/e1000_phy.c

and the friend group πŸ’œ:

periodt πŸ’…


and that's the page, bestie πŸ§šβ€β™€οΈ brought to you from ./drivers/net/ethernet/intel/igb, dated October 2026 β€” mwah, go touch some grass (or a PHY status register) πŸ’œβ­

πŸ“¦ where this page comes from