cdns_ufs_set_hclkdiv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

cdns_ufs_set_hclkdiv β€” bestie, this one literally sets the HCLKDIV register value based on the core_clk. That's it, that's the whole vibe ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int cdns_ufs_set_hclkdiv (struct ufs_hba *hba );

πŸŽ€ ARGUMENTS πŸŽ€

  • hba β€” the host controller instance, aka the main character of this whole function 🫢

⭐ RETURN ⭐

So the tea is: it gives you back zero for success and non-zero for failure. That's it. Zero = slay, anything else = 😭


πŸ’… SEE ALSO πŸ’…

Ok so if you wanna keep the lore going, go read the kernel file ./drivers/ufs/host/cdns-pltfrm.c β€” it's all right there, no cap πŸ‘‘

And then these iconic little siblings, all section (9), all obsessed with each other:

Go read them. Not me being a good influence for once πŸ™ˆ

🌸 bye bestie 🌸

This little masterpiece lives in ./drivers/ufs/host, dated October 2026, and it's the cdns_ufs_set_hclkdiv(9) page from the Kernel API Manual β€” go forth and set those clock dividers, you absolute icon πŸŒˆπŸ’œ

πŸ“¦ where this page comes from