stmmac_init_tstamp_counter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 instance
  • systime_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):

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