ethtool_get_phc_vclocks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the ethtool_get_phc_vclocks(9) page in the Kernel API Manual β€” it's short, but the memory note is important, fr fr πŸ˜­πŸ’…

πŸ’– NAME πŸ’–

ethtool_get_phc_vclocks β€” derives phc vclocks information, and the caller is responsible for freeing the memory of vclock_index β€” yes, the caller has to free that memory, no cap 🫢

✨ SYNOPSIS ✨

here's the signature, exact and untouched, bestie:

int ethtool_get_phc_vclocks (struct net_device *dev , int **vclock_index
       );

πŸ“₯ ARGUMENTS πŸ“₯

vibe check on the args πŸ’…

  • dev β€” pointer to a net_device structure.
  • vclock_index β€” pointer to a pointer of vclock index.

πŸ” RETURN πŸ”

returns the number of phc vclocks. that's the return value, periodt πŸ”₯

πŸ‘€ SEE ALSO πŸ‘€

go read these too, iykyk β€” the whole kernel API friend group plus the file homie:

okay that's the whole page, bestie β€” cute sign-off: source/version ./include/linux, date October 2026, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from