phy_notify_connect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« phy_notify_connect(9) πŸ’«

ok so we're in the Kernel API Manual bestie, and today's main character is phy_notify_connect β€” the little function that tells your phy "hey, somebody plugged in" πŸŽ€


🌸 NAME 🌸

phy_notify_connect β€” phy connect notification. that's it, that's the vibe ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int phy_notify_connect (struct phy *phy , int port );

πŸ’œ ARGUMENTS πŸ’œ

  • phy β€” the phy. which phy? the one you got back from phy_get πŸ’… like, that exact one, don't be out here guessing.
  • port β€” the port index for connect πŸ“ that's the number that tells it which port we're talking about.

🌈 DESCRIPTION 🌈

okay so here's the tea β˜• β€” if the phy needs to get its connection status, this callback is the thing you reach for. that's it. that's the whole description. iconic of it honestly πŸ‘‘


⭐ RETURN ⭐

0 if it slayed (successful) βœ… β€” otherwise a negative error code, which is the kernel's way of saying "nope 😭" πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr β€” plus the kernel file ./drivers/phy/phy-core.c where it all lives 🫢


ok that's the whole page, go touch some grass (or a phy) πŸŒ±πŸ’–

sign-off szn: this lil beauty comes from ./drivers/phy and it's dated October 2026 β€” no cap, put it in your calendar πŸŽ€βœ¨

πŸ“¦ where this page comes from