ufshcd_devfreq_scale(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ ufshcd_devfreq_scale(9) β€” the Kernel API Manual, bestie edition πŸ¦‹

okay so this is a page from the Kernel API Manual (section 9, the kernel-internal one, iykyk) and it's all about one little function that handles the UFS clocks-and-gear glow-up ✨


✨ NAME ✨

ufshcd_devfreq_scale β€” literally the function that scales UFS clocks and gear up or down πŸ’…


🌸 SYNOPSIS 🌸

int ufshcd_devfreq_scale (struct ufs_hba *hba , unsigned long freq ,
       bool scale_up );

like yes bestie that's the whole signature, no notes 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • hba β€” your per adapter instance, the main character of this whole situation πŸ‘‘
  • freq β€” the frequency to scale, i.e. the number you're feeding in 🌈
  • scale_up β€” True for scaling up and false for scaling down (that's the whole vibe check) ⭐

πŸ’– RETURN πŸ’–

So here's the tea:

  • 0 β€” success, we ate πŸ”₯
  • -EBUSY β€” scaling can't happen at this time, honest to god it's just not the moment 😭
  • non-zero β€” literally any other errors, so keep an eye out πŸ‘€

πŸ’œ SEE ALSO πŸ’œ

The Kernel file lives at ./drivers/ufs/core/ufshcd.c and ngl the friend group here is huge β€” like the whole ufshcd cinematic universe shows up. Here's every single one, no cap, no skips 🧚:


bestie that's a lot of friends and every single one of them is invited to the group chat 🫢

and that's the whole page! πŸ’… this one lives in ./drivers/ufs/core and it's dated October 2026 β€” screaming, crying, marking the calendar 😭 mwah, go scale some clocks, ily β­πŸ’–πŸŽ€

πŸ“¦ where this page comes from