plca_check_valid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

plca_check_valid β€” Check PLCA configuration before enabling πŸ’…

okay bestie, welcome to plca_check_valid(9) from the Kernel API Manual β€” yes, that's the manual name, and it's living right here near the top instead of the big copied header line. This one is the pre-enable vibe check for PLCA config, fr fr. 🫢


✨ SYNOPSIS ✨

int plca_check_valid (struct phy_device *phydev , const struct
phy_plca_cfg *plca_cfg , struct netlink_ext_ack *extack );

That's the whole signature, bestie β€” keep it exactly like that. πŸŽ€


πŸŽ€ ARGUMENTS πŸŽ€

  • phydev β€” the phy_device struct. literally the PHY device in question. πŸ¦‹
  • plca_cfg β€” the current PLCA configuration. yes, the config being checked. πŸ’–
  • extack β€” the extack for reporting useful error messages. it's giving helpful-error-message energy. ✨

πŸ”₯ DESCRIPTION πŸ”₯

Checks whether the PLCA and PHY configuration are consistent and it is safe to enable PLCA. Returns 0 on success or a negative value if the PLCA or PHY configuration is not consistent.

No cap: consistency is the whole assignment here. If the PLCA and PHY configuration are consistent and it's safe to enable PLCA, you get 0. If the PLCA or PHY configuration is not consistent, you get a negative value, periodt. πŸ’€

bestie, this is the pre-enable vibe check. don't skip it and then act surprised, iykyk. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Here's the whole squad, all references exactly as they came, no skipping the "boring" ones:


okay bye bestie 🫢 this page comes from ./drivers/net/phy and is dated October 2026 β€” that's the source/version and date sign-off, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from