clk_set_duty_cycle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hiii bestie πŸ’– this is the clk_set_duty_cycle(9) page from the Kernel API Manual β€” yes, we are deep in kernel clock land, and honestly it's giving main-character energy. Let's go πŸ¦‹

🌸 NAME 🌸

clk_set_duty_cycle β€” adjust the duty cycle ratio of a clock signal πŸ’…

✨ SYNOPSIS ✨

bestie, the signature is literally this, no edits:

int clk_set_duty_cycle (struct clk *clk , unsigned int num , unsigned
       int den );

πŸŽ€ ARGUMENTS πŸŽ€

  • clk β€” clock signal source. This is the clock you're adjusting, the icon of the operation πŸ‘‘
  • num β€” numerator of the duty cycle ratio to be applied.
  • den β€” denominator of the duty cycle ratio to be applied.

πŸ’– DESCRIPTION πŸ’–

Adjust the duty cycle of a clock signal by the specified ratio. Returns 0 on success, -EERROR otherwise.

That's it β€” that's the whole thing. You're adjusting a duty cycle ratio; success hands you a big fat 0, and anything else is -EERROR. No cap, -EERROR is exactly what the page says, so don't come for me πŸ’€βœ¨

πŸ¦‹ SEE ALSO πŸ¦‹

okay so the cross-reference section is huge β€” it's giving entire clock API group chat. The whole squad is here:


okay bye bestie πŸ’… source/version: ./include/linux; date: October 2026; page: clk_set_duty_cycle(9) 🫢✨

πŸ“¦ where this page comes from