ufs_mtk_setup_clocks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ufs_mtk_setup_clocks(9) πŸ’–

okay so welcome to the Kernel API Manual bestie, today we're looking at ufs_mtk_setup_clocks(9) and honestly? it's giving "small function, big responsibilities". it does exactly one glamorous thing: turns clocks on and off. that's it. that's the gig. πŸ•βœ¨


✨ NAME ✨

ufs_mtk_setup_clocks β€” enables/disable clocks πŸŽ€

like yes the grammar is a little chaotic but the energy is correct, she enables AND she disables, an icon of duality πŸ’…


🌸 SYNOPSIS 🌸

int ufs_mtk_setup_clocks (struct ufs_hba *hba , bool on , enum
ufs_notify_change_status status );

three arguments, one int return, zero drama (unless it returns non-zero, then there's some drama 😭)


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hba β€” the host controller instance, aka the main character of this whole situation πŸ‘‘ this is the thing whose clocks you're messing with, so pls be normal about it.
  • on β€” if true, enable the clocks; else disable them. it's a bool, it's literally yes-or-no, no in-between, no "maybe", no "i'll decide later" πŸ™ˆ
  • status β€” PRE_CHANGE or POST_CHANGE notify πŸ“£ which one you get depends on where in the change you are. before? after? she contains multitudes.

⭐ RETURN ⭐

0 on success, non-zero on failure. that's the whole deal. zero = slay, non-zero = something went sideways and you should probably look at it πŸ”₯


🌈 SEE ALSO 🌈

the whole mediatek ufs friend group honestly, they all show up together, iykyk 🧚


lowkey reminder: this page is short because the function is short, not because i'm being lazy. every single detail is here. no cap. πŸ’œ

and that's the tea πŸ“ this came to you from ./drivers/ufs/host, dated October 2026, and yes that's the actual footer energy, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from