zl3073x_chan_tod_ctrl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the zl3073x device. 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 πŸ“

  • 0 on success β€” slay ✨
  • <0 on error β€” not slay 😭

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/dpll/zl3073x/chan.c, plus these iconic neighbors in the same directory:


πŸ’– 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