stmmac_init_tstamp_counter(9)
π stmmac_init_tstamp_counter(9) β like, the kernel API manual page, but make it make sense π
okay bestie, welcome to the Kernel API Manual entry for stmmac_init_tstamp_counter(9) β¨ this is the one that boots up the hardware timestamping counter, and honestly? she's iconic. let's get into it π«Ά
πΈ NAME πΈ
stmmac_init_tstamp_counter β init hardware timestamping counter π literally what it says on the tin, no cap
β¨ SYNOPSIS β¨
int stmmac_init_tstamp_counter (struct stmmac_priv *priv , u32
systime_flags );
that's the whole vibe check: takes a struct stmmac_priv * and a u32, hands you back an int π
π¦ ARGUMENTS π¦
privβ the driver's private structure π that's your whole personality/state object, she knows everything about this driver instancesystime_flagsβ the timestamping flags π these tell the counter how to behave
π DESCRIPTION π
So the whole point: this bad boy initializes the hardware counter for packet timestamping β that's it, that's the job.
It's valid as long as the interface is open and not suspended β like, don't expect her to be doing her thing while she's asleep, okay? π΄
And here's the tea π₯ β it will be rerun after resuming from suspend. In that case, the timestamping flags that were updated by stmmac_hwtstamp_set also need to be restored π so like, don't forget to bring those back, bestie, or the whole thing is giving amnesia π
π§ SEE ALSO π§
okay this is the part where the manpage goes absolutely feral with cross-references, and we are NOT skipping a single one, periodt π
the source file herself:
- Kernel file
./drivers/net/ethernet/stmicro/stmmac/stmmac_main.cπ
the whole friend group (yes, all of them):
stmmac_set_clk_tx_rate(9)stmmac_axi_blen_to_mask(9)stmmac_verify_args(9)stmmac_disable_all_queues(9)stmmac_enable_all_queues(9)stmmac_rx_dirty(9)stmmac_try_to_start_sw_lpi(9)stmmac_stop_sw_lpi(9)stmmac_eee_ctrl_timer(9)stmmac_hwtstamp_set(9)stmmac_hwtstamp_get(9)stmmac_init_timestamping(9)stmmac_mac_flow_ctrl(9)stmmac_check_pcs_mode(9)stmmac_init_phy(9)stmmac_clear_rx_descriptors(9)stmmac_clear_tx_descriptors(9)stmmac_clear_descriptors(9)stmmac_init_rx_buffers(9)stmmac_free_rx_buffer(9)stmmac_free_tx_buffer(9)dma_free_rx_skbufs(9)dma_free_rx_xskbufs(9)__init_dma_rx_desc_rings(9)__init_dma_tx_desc_rings(9)init_dma_desc_rings(9)dma_free_tx_skbufs(9)stmmac_free_tx_skbufs(9)__free_dma_rx_desc_resources(9)__free_dma_tx_desc_resources(9)__alloc_dma_rx_desc_resources(9)__alloc_dma_tx_desc_resources(9)alloc_dma_desc_resources(9)free_dma_desc_resources(9)stmmac_mac_enable_rx_queues(9)stmmac_start_rx_dma(9)stmmac_start_tx_dma(9)stmmac_stop_rx_dma(9)stmmac_stop_tx_dma(9)stmmac_start_all_dma(9)stmmac_stop_all_dma(9)stmmac_dma_operation_mode(9)stmmac_tx_clean(9)stmmac_tx_err(9)stmmac_set_dma_operation_mode(9)stmmac_dma_interrupt(9)stmmac_mmc_setup(9)stmmac_get_hw_features(9)stmmac_check_ether_addr(9)stmmac_init_dma_engine(9)stmmac_tx_timer(9)stmmac_init_coalesce(9)stmmac_set_tx_queue_weight(9)stmmac_configure_cbs(9)stmmac_rx_queue_dma_chan_map(9)stmmac_mac_config_rx_queues_prio(9)stmmac_mac_config_tx_queues_prio(9)stmmac_mac_config_rx_queues_routing(9)stmmac_mtl_configuration(9)stmmac_hw_setup(9)stmmac_setup_dma_desc(9)__stmmac_open(9)stmmac_release(9)stmmac_tso_allocator(9)stmmac_tso_xmit(9)stmmac_has_ip_ethertype(9)stmmac_xmit(9)stmmac_rx_refill(9)stmmac_rx(9)stmmac_tx_timeout(9)stmmac_set_rx_mode(9)stmmac_change_mtu(9)stmmac_interrupt(9)stmmac_ioctl(9)stmmac_hw_init(9)stmmac_dvr_probe(9)stmmac_dvr_remove(9)stmmac_suspend(9)stmmac_reset_queues_param(9)stmmac_resume(9)
like I said. the whole friend group. iykyk ππ
π reminder bestie: this counter only counts while the interface is open and not suspended, and after a suspend/resume you gotta restore those flags from stmmac_hwtstamp_set. don't leave her hanging π«Ά
and that's the whole page!! source is ./drivers/net/ethernet/stmicro..., dated October 2026, and she's filed under stmmac_init_tstamp_counter(9) in the Kernel API Manual πΈβ¨ mwah, go timestamp some packets, ily π
π¦ 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