STRUCT UFS_EVENT_HIST(9)
β¨ 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
- 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