phy_port_restrict_mediums(9)
π phy_port_restrict_mediums(9) β Kernel API Manual π
okay bestie, welcome to the group chat for phy_port_restrict_mediums(9) from the Kernel API Manual β this page is lowkey all about masking away some of a port's supported mediums, and it's giving βnarrow the list once we know what this port actually isβ energy β¨
π NAME π
phy_port_restrict_mediums β mask away some of the port's supported mediums π
β¨ SYNOPSIS β¨
int phy_port_restrict_mediums (struct phy_port *port , unsigned long
mediums );
π¦ ARGUMENTS π¦
portβ the port to act upon, bestie π«Άmediumsβ a mask of mediums to support on the port πΈ
π₯ DESCRIPTION π₯
So here's the tea β: this helper allows removing some mediums from a port's list of supported mediums. That happens once we have enough information about the port to know its nature β periodt. It's literally the βokay, now we know your vibe, let's trim the supported mediumsβ moment, and ngl that's kind of iconic.
π RETURN π
0 if the change was donne correctly, and a negative value otherwise ππ
(Yes bestie, βdonneβ is exactly the spelling on the page β we preserve the details around here, fr fr.)
π SEE ALSO π
Kernel file ./drivers/net/phy/phy_port.c plus these main-character functions, iykyk:
phy_port_alloc(9)phy_port_destroy(9)phy_of_parse_port(9)phy_port_update_supported(9)phy_port_filter_supported(9)phy_port_get_type(9)
mwah π source: ./drivers/net/phy Β· manual/version: Kernel API Manual Β· date: October 2026 Β· page: phy_port_restrict_mediums(9) β slay and goodbye πβ¨
π¦ 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