ufshcd_apply_tx_eq_settings(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ ufshcd_apply_tx_eq_settings β€” the Kernel API Manual moment

Okay bestie, so this page is literally from the Kernel API Manual and it's all about ufshcd_apply_tx_eq_settings β€” the function that applies TX Equalization settings for the target gear ✨. Yes, that's the whole NAME section, and no, I'm not going to make it longer than it needs to be, because the kernel is already doing the most.


🌸 SYNOPSIS

int ufshcd_apply_tx_eq_settings (struct ufs_hba *hba , struct
       ufshcd_tx_eq_params *params , u32 gear );

Three things go in, an int comes out. It's giving "small function, big responsibility" πŸ’…


πŸŽ€ ARGUMENTS

  • hba β€” the per adapter instance 🫢 like, the one UFS host controller adapter we're working with, bestie.
  • params β€” the TX EQ parameters data structure 🌈 this is where all the equalization goodies live.
  • gear β€” the target gear πŸ‘‘ the gear we're aiming for, fr fr.

πŸ’– DESCRIPTION

Returns 0 on success, negative error code otherwise. That's it. That's the description. Short and iconic β€” not me being lazy, the manpage literally said that, no cap 😭

Lowkey the whole deal: you hand it the adapter, the params, and the gear, and it either slays (0) or hands you back a negative error code. Check your return values, bestie, always πŸ’€

πŸ”₯ SEE ALSO

The kernel file is ./drivers/ufs/core/ufs-txeq.c and honestly the whole friend group is here β€” go say hi to:


And that's the tea β˜• this one dropped out of ./drivers/ufs/core, dated October 2026, and it goes by ufshcd_apply_tx_eq_settings(9) β€” mwah, periodt πŸ’‹πŸ’œ

πŸ“¦ where this page comes from