phy_get_non_dummy_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 phy_get_non_dummy_port 🌸

okay so bestie, welcome to the Kernel API Manual entry for phy_get_non_dummy_port and honestly? it's a little baddie of a function. let's get into it πŸ’–


✨ NAME ✨

phy_get_non_dummy_port β€” this method returns the port that's currently containing this phy. and like… if the phy is currently contained by the dummy port, then the phy is considered to not be part of a port. that's the whole vibe check. no cap. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct isci_port * phy_get_non_dummy_port (struct isci_phy *iphy );

that's it. that's the signature. icon behaviour honestly.


πŸŽ€ ARGUMENTS πŸŽ€

  • iphy β€” this parameter specifies the phy for which you wanna retrieve the containing port. like, "which phy, bestie?" and you tell it. 🫢

🧚 DESCRIPTION 🧚

okay so here's the tea β˜• β€” this method returns a handle to a port that contains the supplied phy. simple enough, right? but wait, there's a little drama:

  • NULL β€” this value is returned if the phy is not part of a real port (i.e. it's contained in the dummy port). so if you get NULL back, that phy is lowkey just hanging out in the dummy port, not a real one. πŸ™ˆ
  • !NULL β€” all other values indicate a handle/pointer to the port containing the phy. so like, anything that isn't NULL means you got a real one, and it slayed. πŸ”₯
ngl, the whole "dummy port" thing is the main character here β€” if your phy is in there, it doesn't count as being part of a port. periodt. πŸ‘‘

🌈 SEE ALSO 🌈

go read those too, they're all part of the same friend group fr fr 🫢✨


and that's the whole page, bestie!! brought to you by the source ./drivers/scsi/isci, dated October 2026 β€” mwah, ily, go call phy_get_non_dummy_port responsibly πŸ’œπŸŽ€πŸŒ·

πŸ“¦ where this page comes from