phy_get_non_dummy_port(9)
πΈ 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 getNULLback, 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'tNULLmeans 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 π
- Kernel file
./drivers/scsi/isci/phy.c sci_phy_setup_transport(9)sci_phy_complete_link_training(9)scu_link_layer_stop_protocol_engine(9)scu_link_layer_tx_hard_reset(9)isci_phy_control(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms