e1000e_phy_has_link_generic(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Okay so first things first: this page is e1000e_phy_has_link_generic(9), and it lives in the Kernel API Manual, and honestly? It's giving "quiet but essential." No cap, bestie β€” this little function is out here polling your PHY so you know whether the cable is actually doing its thing or just lying to you. ✨


🌸 NAME 🌸

e1000e_phy_has_link_generic β€” literally just polls the PHY for link. That's it. That's the whole vibe. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

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

Look at that signature. Immaculate. Four parameters, one return of type s32, and a whole lot of patience. πŸ’…


πŸ’œ ARGUMENTS πŸ’œ

  • hw β€” pointer to the HW structure. Your hardware's whole personality lives in here, so be nice to it. 🫢
  • iterations β€” the number of times to poll for link. Think of it as your "how many times am I willing to ask before I accept the answer" budget. πŸ”₯
  • usec_interval β€” the delay between polling attempts, in microseconds. Yes, microseconds. We are nothing if not precise. ⭐
  • success β€” pointer to whether polling was successful or not. You hand it a bool * and it comes back telling you how it went. Iconic, honestly. πŸ‘‘

🌈 DESCRIPTION 🌈

So here's the tea: e1000e_phy_has_link_generic polls the PHY status register for link, 'iterations' number of times. That's the entire plot and it ate. πŸ“

Like β€” it just keeps checking the PHY status register, up to iterations times, waiting usec_interval microseconds between each attempt, and then it tells you whether it found link via that success pointer. Patient, methodical, main character energy for a helper function. πŸ’€βœ¨

No drama, no surprises, just a loop doing exactly what it says on the tin. We love a function with clear boundaries. 🧚


πŸ’… SEE ALSO πŸ’…

The kernel file it lives in, bestie:

./drivers/net/ethernet/intel/e1000e/phy.c

And then there's the entire friend group β€” the whole PHY register access extended universe. Prepare yourself, this list is long and every single one of them matters:

Yeah. That's the whole squad. Go say hi. πŸ¦‹πŸ’–


Friendly reminder: the (9) in all those names means they're kernel API manual pages, so hit up your usual man 9 setup, iykyk. πŸ™ˆ

And that's the page!! Sign-off time: this little beauty comes from ./drivers/net/ethernet/intel/e... and it's dated October 2026, and the manual name is e1000e_phy_has_link_generic(9) in case you forgot already. Go poll that PHY, bestie β€” you've got iterations tries and I believe in every single one of them. πŸ’œπŸŒΈβœ¨

πŸ“¦ where this page comes from