STRUCT UFS_CLK_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct ufs_clk_info(9) 🌸

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for struct ufs_clk_info, and it's literally just the clock-info glow-up for UFS. Let's get into it πŸ’…


✨ NAME ✨

struct ufs_clk_info β€” UFS clock related info πŸ•


πŸŽ€ SYNOPSIS πŸŽ€

here's the struct in all its iconic glory, verbatim, no cap:

struct ufs_clk_info {
    struct list_head list;
    struct clk *clk;
    const char *name;
    u32 max_freq;
    u32 min_freq;
    u32 curr_freq;
    bool keep_link_active;
    bool enabled;
 };

πŸ’– Members πŸ’–

okay so here's the member-by-member breakdown, and yes every single one is here, I would never do you dirty like that:

  • list β€” the list that's headed by hba->clk_list_head πŸ¦‹
  • clk β€” the clock node
  • name β€” the clock's name
  • max_freq β€” the maximum frequency the clock supports πŸ”₯
  • min_freq β€” the min frequency that can be used for clock scaling
  • curr_freq β€” tells you the current frequency that it's set to
  • keep_link_active β€” indicates that the clk should not be disabled if the link is active πŸ‘€
  • enabled β€” a variable to check against multiple enable/disable

🫢 SEE ALSO 🫢

this is the part where the struct introduces you to all its friends πŸ’œ β€” and there are a lot of them, so buckle up, we're going through every single one:

  • 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 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)
  • ufshcd_get_variant(9)

ngl bestie, that's the whole page β€” every member, every reference, nothing skipped, we ate and left no crumbs πŸ’…βœ¨

okay and before you go, the little sign-off corner πŸŽ€: this page lives at ./include/ufs, it's dated October 2026, and it answers to the name struct ufs_clk_info(9). slay, bye πŸ’–πŸŒŸ

πŸ“¦ where this page comes from