ufshcd_get_variant(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ufshcd_get_variant(9) ✨

okay so first things first, bestie: this is a page from the Kernel API Manual, and it's literally the whole vibe of "hey, give me the variant-specific data for this hba." that's it. that's the function. short and iconic πŸ’…


πŸŽ€ NAME πŸŽ€

ufshcd_get_variant β€” get variant specific data from the hba

like, you have an hba (a per adapter instance, we'll get there) and you want its variant-specific stuff back. that's the entire job. no cap. πŸ¦‹


🌸 SYNOPSIS 🌸

void * ufshcd_get_variant (struct ufs_hba *hba );

yes she takes one argument, yes she returns a void *, and yes she is that girl. ✨


πŸ’– ARGUMENTS πŸ’–

  • hba β€” per adapter instance 🫢

that's the one single argument, bestie. it's the adapter instance you're asking about. one (1) whole parameter. we love a low-maintenance signature.


⭐ RETURN ⭐

pointer to the hba's private data area πŸ’«

so like… you hand her the hba, she hands you back a pointer to that hba's private data area. that's the trade. fair and balanced. πŸ”₯


🧚 SEE ALSO 🧚

okay this part is giving "she has a LOT of mutuals" and honestly? obsessed. here's the full friend group, all from the Kernel file ./include/ufs/ufshcd.h:

  • struct uic_command(9)
  • struct ufshcd_lrb(9)
  • struct ufs_query_req(9)
  • struct ufs_query_res(9)
  • struct ufs_query(9)
  • struct ufs_dev_cmd(9)
  • struct ufs_clk_info(9)
  • struct tx_eqtr_iter(9)
  • struct ufshcd_tx_eq_settings(9)
  • struct ufshcd_tx_eqtr_data(9)
  • struct ufshcd_tx_eqtr_record(9)
  • struct ufshcd_tx_eq_params(9)
  • struct ufs_hba_variant_ops(9)
  • struct ufs_clk_gating(9)
  • struct ufs_clk_scaling(9)
  • struct ufs_event_hist(9)
  • struct ufs_stats(9)
  • enum ufshcd_state(9)
  • enum ufshcd_pmc_policy(9)
  • struct ufshcd_mcq_opr_info_t(9)
  • struct ufs_hba(9)
  • struct ufs_hw_queue(9)
  • ufshcd_rmwl(9)
  • ufshcd_set_variant(9)

iykyk πŸ‘‘ and yes, ufshcd_set_variant(9) is right there at the end β€” the setter to this getter, her other half, main character energy fr fr πŸ’œ


reminder bestie: this page lives under ./include/ufs and it's dated October 2026 β€” that's the source/version line and the date, so don't come for me if you were looking for a different edition πŸŽ€

anyway that's the whole page, mwah, go read your headers πŸ’‹πŸ’–πŸŒˆ

πŸ“¦ where this page comes from