ethtool_get_phc_vclocks(9)
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 anet_devicestructure.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:
- Kernel file
./include/linux/ethtool.henumethtool_phys_id_state(9) struct kernel_ethtool_ringparam(9)enum ethtool_supported_ring_param(9)ethtool_rxfh_indir_default(9)struct ethtool_rxfh_context(9)ethtool_link_ksettings_zero_link_mode(9)ethtool_link_ksettings_add_link_mode(9)ethtool_link_ksettings_del_link_mode(9)ethtool_link_ksettings_test_link_mode(9)ethtool_intersect_link_masks(9)struct ethtool_phy_stats(9)struct ethtool_pause_stats(9)struct ethtool_fec_hist_range(9)struct ethtool_fec_stats(9)struct ethtool_rmon_hist_range(9)struct ethtool_rmon_stats(9)struct ethtool_ts_stats(9)struct ethtool_module_eeprom(9)struct ethtool_module_power_mode_params(9)struct ethtool_mm_state(9)struct ethtool_mm_cfg(9)struct ethtool_mm_stats(9)struct ethtool_mmsv_ops(9)struct ethtool_mmsv(9)struct ethtool_rxfh_param(9)struct ethtool_rxfh_fields(9)struct kernel_ethtool_ts_info(9)struct ethtool_ops(9)struct ethtool_netdev_state(9)struct ethtool_phy_ops(9)ethtool_set_ethtool_phy_ops(9)ethtool_params_from_link_mode(9)ethtool_mm_frag_size_add_to_min(9)ethtool_mm_frag_size_min_to_add(9)ethtool_get_ts_info_by_layer(9)ethtool_sprintf(9)ethtool_puts(9)ethtool_cpy(9)
okay that's the whole page, bestie β cute sign-off: source/version ./include/linux, date October 2026, mwah π
β¨
π¦ 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