zl3073x_chan_tod_ctrl(9)
π zl3073x_chan_tod_ctrl(9) β like, the ToD command issuer β¨
okay so bestie, we're in the Kernel API Manual today and this is literally the page for zl3073x_chan_tod_ctrl(9). it's giving "tiny function, big responsibility" energy π
πΈ NAME πΈ
zl3073x_chan_tod_ctrl β issue a ToD command. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
int zl3073x_chan_tod_ctrl (struct zl3073x_dev *zldev , u8 ch , u8 cmd );
look at her go. three args, one int return, no notes π
π«Ά ARGUMENTS π«Ά
zldevβ pointer to thezl3073xdevice. the main character, fr π¦chβ the DPLL channel index.u8, so keep it smol πcmdβ the ToD command you want to execute. yes queen, do the thing π₯
π DESCRIPTION π
okay so what's actually happening here: this writes the semaphore and the command to dpll_tod_ctrl. that's the whole job, no cap.
but β and this is the important part, so listen up π β the caller has to make sure the device is ready (meaning the semaphore is clear) before calling. and if you need completion, you gotta wait for it yourself. this function is not gonna hold your hand on that one, bestie. it just does the write. the rest? on you. π
lowkey a "you had one job and the job is the caller's" situation. handle the readiness check, handle the wait. periodt.
π RETURN π
0on success β slay β¨<0on error β not slay π
π SEE ALSO π
kernel file ./drivers/dpll/zl3073x/chan.c, plus these iconic neighbors in the same directory:
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_read(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)
π that's the whole page, bestie π
cute little sign-off: this one lives at ./drivers/dpll/zl3073x and it's dated October 2026 β go off, calendar ποΈβ¨
ily, read your semaphores, and stay hydrated π§π
π¦ 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