zl3073x_chan_tod_ready_wait(9)
π zl3073x_chan_tod_ready_wait
okay so bestie, welcome to the Kernel API Manual entry for zl3073x_chan_tod_ready_wait β she's a little helper that just sits there and waits for a ToD semaphore to clear π no cap, that's literally the whole job.
β¨ NAME β¨
zl3073x_chan_tod_ready_wait β wait for ToD semaphore to clear π«Ά
πΈ SYNOPSIS πΈ
int zl3073x_chan_tod_ready_wait (struct zl3073x_dev *zldev , u8 ch );
π¦ ARGUMENTS π¦
zldevβ pointer to zl3073x device π like, the whole device, handed to you on a little pointer platterchβ DPLL channel index π which channel we're doing the vibe check on
π DESCRIPTION π
okay so here's the tea β this function checks the ToD control register semaphore bit. If it's already clear? She returns immediately β no waiting, no drama, main character energy only π
Otherwise she polls until the bit gets cleared by the device. Like refreshing your group chat waiting for a reply, except you're a kernel driver and the reply is a semaphore bit clearing π
β RETURN β
0β success β¨ ate, no notes-EBUSYβ timeout π she waited, and the bit never cleared, so she gave up-EOPNOTSUPPβ unknown command detected π that's not a thing, bestie- negative β other error π the generic catch-all for when something else goes sideways
π SEE ALSO π
Kernel file ./drivers/dpll/zl3073x/chan.c β and honestly 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_ctrl(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)
fr fr, if you're gonna poll a bit, at least know your return codes π§
k bye, this page lives in ./drivers/dpll/zl3073x and she was dated October 2026 β iconic, timeless, periodt πππ¦
π¦ 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