zl3073x_chan_tod_read(9)
π zl3073x_chan_tod_read(9) β from the Kernel API Manual, bestie β¨
Okay so picture this: you're deep in the kernel, you've just fired off a command, and now you need the Time-of-Day registers back. That's literally this function. It's zl3073x_chan_tod_read, and it reads the ToD registers after you've issued a command. Slay. π
πΈ NAME πΈ
zl3073x_chan_tod_read β read ToD registers after issuing a command, no cap π«Ά
β¨ SYNOPSIS β¨
int zl3073x_chan_tod_read (struct zl3073x_dev *zldev , u8 ch , bool
next_hz , struct timespec64 *ts , struct ptp_system_timestamp *sts );
That's the whole vibe check right there β one int coming back at you, five args going in. π
π¦ ARGUMENTS π¦
zldevβ pointer tozl3073xdevice. Your main character struct, the whole reason we're here πchβ DPLL channel index. Which channel we're doing this for,u8style β¨next_hzβ iftrue, read the predicted ToD at next 1 Hz; otherwise read current. Pick your timeline, bestie β°tsβtimespecto store the result. This is where the answer lands πstsβ optional system timestamp pair for cross-timestamping. Optional! So you can totally pass nothing here π
π₯ CONTEXT π₯
Heads up, this one's on you: the caller must serialize all zl3073x_chan_tod_* calls externally. Like, all of them. Every single one. No sneaky parallel calls, okay? π
β RETURN β
0on success π<0on error π
π SEE ALSO π
Kernel file ./drivers/dpll/zl3073x/chan.c, plus the whole friend group:
zl3073x_chan_state_update(9)zl3073x_chan_nco_mode_set(9)zl3073x_chan_state_fetch(9)zl3073x_chan_state_get(9)zl3073x_chan_tod_ready_wait(9)zl3073x_chan_tod_ctrl(9)zl3073x_chan_tod_write(9)zl3073x_chan_tod_adjust(9)zl3073x_chan_df_offset_set(9)zl3073x_chan_tie_write(9)zl3073x_chan_phase_step(9)zl3073x_chan_state_set(9)
And that's the page, bestie π§ This gem lives under ./drivers/dpll/zl3073x, stamped October 2026 β go forth and cross-timestamp responsibly ππ
π¦ 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