ufshcd_dwc_program_clk_div(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« ufshcd_dwc_program_clk_div(9) πŸ’«

okay so bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, we're in the kernel docs now, put your lanyard on πŸŽ€ this one is a single function and honestly it's giving "small but mighty."


✨ NAME ✨

ufshcd_dwc_program_clk_div β€” program clock divider. that's it, that's the whole job. she programs the clock divider. periodt πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void ufshcd_dwc_program_clk_div (struct ufs_hba *hba , u32 divider_val );

like, the signature is right there, no cap. returns void β€” she doesn't hand anything back, she just does the thing πŸ”₯


🌸 ARGUMENTS 🌸

  • hba β€” a Private Structure pointer 🫢 literally the private structure, pointer-shaped, that's your whole personality here.
  • divider_val β€” the clock divider value to be programmed ⭐ this is the number that's getting programmed in, so pls pass the one you actually mean.

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at ./drivers/ufs/host/ufshcd-dwc.c β€” go read it, iykyk πŸ“– and while you're in the neighborhood, say hi to her friends:

all of them are living their best lives in ./drivers/ufs/host πŸ›βœ¨


ngl this page is short enough that skipping parts would be a crime, so congrats, you got 100% of the facts and 100% of the vibes πŸ’€

and that's a wrap, bestie πŸŽ€ brought to you by ./drivers/ufs/host, October 2026, in the Kernel API Manual β€” mwah, go program a clock divider, slay πŸ’–πŸŒˆ

πŸ“¦ where this page comes from