ufshcd_get_variant(9)
β¨ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms