STRUCT UFS_EVENT_HIST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, we're looking at struct ufs_event_hist(9) from the Kernel API Manual, and it is literally struct ufs_event_hist β€” keeps history of errors. That's the whole assignment. It's giving "receipts, but for kernel errors" πŸ’….


🌸 SYNOPSIS 🌸

the shape of this icon is exactly this, no cap:

struct ufs_event_hist {
    int pos;
    u32 val[UFS_EVENT_HIST_LENGTH];
    u64 tstamp[UFS_EVENT_HIST_LENGTH];
    unsigned long long cnt;
 };

πŸŽ€ Members πŸŽ€

  • pos β€” index to indicate cyclic buffer position. it's the "you are here" marker for the little loop-de-loop buffer πŸŒ€.
  • val β€” cyclic buffer for registers value. register values get their own rotating spot ✨.
  • tstamp β€” cyclic buffer for time stamp. time stamps, but make it cyclic πŸ•°οΈ.
  • cnt β€” error counter. it counts the errors, bestie. iconic behaviour, honestly πŸ’€.

πŸ’œ SEE ALSO πŸ’œ

the kernel file is ./include/ufs/ufshcd.h, and the whole see-also squad is right here β€” every single one, no skipping:

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

xoxo, signing off from source ./include/ufs, dated October 2026 β€” bye bestie, mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from