phy_port_restrict_mediums(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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