STRUCT UFS_STATS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ufs_stats(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the page for struct ufs_stats(9), and she is literally here to keep usage/err statistics. no cap. 🫢

✨ NAME ✨

struct ufs_stats β€” keeps usage/err statistics. periodt. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

struct ufs_stats {
    u32 hibern8_exit_cnt;
    u64 last_hibern8_exit_tstamp;
    struct ufs_event_hist event[UFS_EVT_CNT];
 };

that's the whole struct, laid out exactly like that. ✨

🌸 Members 🌸

  • hibern8_exit_cnt β€” counter to keep track of the number of exits, bestie. reset this after link-startup. πŸ”
  • last_hibern8_exit_tstamp β€” set the time after the hibern8 exit. clear it after the first successful command completion. ⏰
  • event β€” array with event history. πŸ—‚οΈ

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/ufs/ufshcd.h β€” and the whole reference friend group is:

  • 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)
  • 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)

that's the whole page, bestie β€” sourced from ./include/ufs, dated October 2026, and signed struct ufs_stats(9). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from