adjust_hist..._crosststamp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– adjust_hist..._crosststamp(9) πŸ’–

hii bestie!! this is the Kernel API Manual page for adjust_hist..._crosststamp(9), and it's lowkey all about adjusting a crosstimestamp from before the current interval. it's giving timekeeping lore, but make it cute 🫢


✨ NAME ✨

adjust_historical_crosststamp β€” adjust crosstimestamp previous to current interval

🌸 SYNOPSIS 🌸

int adjust_historical_crosststamp (struct system_time_snapshot *history , u64 partial_history_cycles , u64 total_history_cycles , bool discontinuity , struct system_device_crosststamp *ts );

πŸŽ€ ARGUMENTS πŸŽ€

  • history β€” Snapshot representing start of history. πŸ•°οΈ
  • partial_history_cycles β€” Cycle offset into history (fractional part).
  • total_history_cycles β€” Total history length in cycles.
  • discontinuity β€” True indicates clock was set on history period. ⚠️
  • ts β€” Cross timestamp that should be adjusted using partial/total ratio.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this helper function is used by get_device_system_crosststamp to correct the crosstimestamp corresponding to the start of the current interval to the system counter value (timestamp point) provided by the driver. literally that's its whole job, and it ate. πŸ’…

the total_history_* quantities are the total history starting at the provided reference point and ending at the start of the current interval. the cycle count between the driver timestamp point and the start of the current interval is partial_history_cycles. periodt.

🌈 SEE ALSO 🌈

the whole timekeeping friend group is here, no cap:


that's the whole page, bestie 🫢 source: ./kernel/time, date: October 2026 β€” for adjust_hist..._crosststamp(9). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from