phylink_get_link_timer_ns(9)
phylink_get_link_timer_ns π
okay so bestie, we're in the Kernel API Manual today (yes, that's the manual name, don't @ me) β and this little function is lowkey iconic. it's phylink_get_link_timer_ns, and it's here to hand you the PCS link timer value. let's get into it β¨
π NAME π
phylink_get_link_timer_ns β returns the PCS link timer value. that's it, that's the whole vibe. no cap. π«Ά
β SYNOPSIS β
int phylink_get_link_timer_ns(phy_interface_t interface);
like, it takes one thing and gives you back an int. simple. elegant. main character energy fr fr. π
π¦ ARGUMENTS π¦
interfaceβ your link typedefphy_interface_tmode. that's the mode, bestie, the whole mood of the link. it's giving "tell me what kind of interface we're on and i'll do the math". π§
πΈ DESCRIPTION πΈ
so what does it do? okay legend, here's the tea β:
it returns the PCS link timer setting in nanoseconds for the PHY interface mode. nanoseconds!! we love a precise queen. β±οΈβ¨
but β and this is the important part β if it's not appropriate for that mode? it hits you with -EINVAL. not a vibe, but them's the rules. so check your mode before you come crying to me π
literally that's the whole contract: nanoseconds for the interface mode, or -EINVAL if it's not appropriate. no guessing, no extra lore. π
π SEE ALSO π
okay this list is long and honestly it ate π β the kernel file ./include/linux/phylink.h and all its friends:
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_inband_caps(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_mac_implements_lpi(9)
and that's the whole page, bestie π go forth and read your link timers. this one came from the ./include/linux source, dated October 2026, and it's filed under phylink_get_link_timer_ns(9) β so if you forget where you found it, iykyk π
πβ¨
π¦ 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