phylink_get_link_timer_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 typedef phy_interface_t mode. 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:


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