pcs_inband_caps(9)
π pcs_inband_caps β the kernel API manual, bestie edition
okay so this page is pcs_inband_caps(9) and it's literally all about asking your PCS what in-band stuff it can do for a given interface mode. short page, but iconic. let's get into it π«Ά
β¨ NAME β¨
pcs_inband_caps β query PCS in-band capabilities for interface mode.
like, "hey bestie, what in-band signalling are you actually about?" that kind of vibe check, but for a PCS. π
πΈ SYNOPSIS πΈ
unsigned int pcs_inband_caps (struct phylink_pcs *pcs , phy_interface_t
interface );
yes the line break is real, no we are not fixing it, it's part of the aesthetic now π
π¦ ARGUMENTS π¦
pcsβ a pointer to astruct phylink_pcs. that's the main character here, the PCS you're questioning.interfaceβ the interface mode to be queried. this is the "for which mode though?" part, because capabilities are per-interface-mode bestie, not one-size-fits-all β¨
π DESCRIPTION π
so here's the tea: this returns zero if it is unknown what in-band signalling is supported by the PHY β for example because the PHY driver doesn't implement the method. not a flex, just a "we genuinely don't know" signal, no cap. π
otherwise? it returns a bit mask of the LINK_INBAND_* values from enum link_inband_signalling to describe which inband modes are supported for this interface mode. so like, each bit is a little flag saying "yep, we do this one". very demure, very bitmask. π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/phylink.hβ the whole phylink saga lives here, go read it iykyk struct phylink_link_state(9)struct phylink_config(9)struct phylink_mac_ops(9)mac_get_caps(9)mac_select_pcs(9)mac_prepare(9)mac_config(9)mac_finish(9)mac_link_down(9)mac_link_up(9)mac_disable_tx_lpi(9)mac_enable_tx_lpi(9)mac_wol_set(9)struct phylink_pcs(9)struct phylink_pcs_ops(9)pcs_validate(9)pcs_enable(9)pcs_disable(9)pcs_get_state(9)pcs_config(9)pcs_an_restart(9)pcs_link_up(9)pcs_disable_eee(9)pcs_enable_eee(9)pcs_pre_init(9)phylink_get_link_timer_ns(9)phylink_mac_implements_lpi(9)
like i said, whole friend group. go say hi to all of them π§π
and that's the whole page bestie, no notes. this one's coming at you from ./include/linux and it's dated October 2026, filed under pcs_inband_caps(9). slay, go query some capabilities π
β¨π
π¦ 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