zl3073x_chan_state_set(9)
π zl3073x_chan_state_set β kernel API manual energy β¨
okay so bestie, welcome to the glow-up of zl3073x_chan_state_set(9) from the Kernel API Manual β she's a DPLL channel function and she commits π
πΈ NAME πΈ
zl3073x_chan_state_set β commit DPLL channel state changes to hardware, no cap π
β¨ SYNOPSIS β¨
int zl3073x_chan_state_set (struct zl3073x_dev *zldev , u8 index , const
struct zl3073x_chan *chan );
like, that's the whole signature, character for character, don't @ me π«Ά
π ARGUMENTS π
zldevβ pointer tozl3073x_devstructure. it's giving "the device, obviously" πindexβ the DPLL channel index you're setting state for. which channel? this one β¨chanβ the desired channel state. the vibes you want her to have π¦
π₯ DESCRIPTION π₯
okay so here's the tea β β she skips the HW write if the configuration is unchanged, because why waste a hardware write when nothing moved? iconic, honestly. lowkey efficient queen π
but if stuff did change? then she writes only the changed registers to hardware. not all of them. just the changed ones. minimal effort, maximum slay π
and here's the detail you cannot miss (iykyk):
- the
mode_refselregister is written directly β¨ - the reference priority registers are written via the DPLL mailbox interface π¬
two different routes, one function. main character energy fr fr π
π RETURN π
0on success π<0on HW error π (and yes, that's literally less than zero, negative numbers mean the hardware said no)
πΌ 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_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)
bestie heads up: this whole page is the property of ./drivers/dpll/zl3073x, dated October 2026 β mwah, drink water, and go commit those state changes ππ§ββοΈ
π¦ 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