tpm1_calc_ordinal_duration(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tpm1_calc_ordinal_duration β€” the kernel API manual, but make it make sense ✨

okay so bestie, welcome to the Kernel API Manual, entry tpm1_calc_ordinal_duration(9). yes that's a whole mouthful, no i will not be shortening it, it's giving ✨academic baddie✨. let's get into it πŸŽ€


🌸 NAME 🌸

tpm1_calc_ordinal_duration β€” calculate the maximum command duration πŸ’…

like, it literally does what it says on the tin. it figures out how long the worst case could possibly take. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned long tpm1_calc_ordinal_duration (struct tpm_chip *chip , u32
ordinal );

look at her. unsigned long return type, two args, living her best life. iconic behavior honestly 🌈


✨ ARGUMENTS ✨

  • chip β€” the TPM chip to use 🫢 like, the actual little guy we're asking about.
  • ordinal β€” the TPM command ordinal. it's the number that says which command we're talking about, iykyk πŸ”₯

πŸ’œ DESCRIPTION πŸ’œ

so the function returns the maximum amount of time the chip could take to return the result for a particular ordinal, measured in jiffies ⭐

read that again: maximum. it's not the average, it's not the ✨vibes-based estimate✨, it's the worst-case ceiling. she's cautious, she's responsible, she ate πŸ’…

and the unit? jiffies. yes that's really the name. no i'm not joking. it's a kernel thing, main character energy fr fr 🧚


πŸ‘‘ RETURN πŸ‘‘

a maximal duration time for an ordinal, in jiffies. that's it. that's the return. unsigned long, maximal, jiffies. periodt πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group 🫢 go say hi to all of them.


πŸ’€ reminder: don't show up expecting exact timings β€” this is the maximum, the ceiling, the "worst case scenario" queen. plan accordingly.

mwah πŸ’‹ that's the page! this little entry lives over in ./drivers/char/tpm, and the date on it is October 2026 β€” yes, the future, and she's still slaying πŸŒΈπŸŽ€βœ¨

πŸ“¦ where this page comes from