tpm1_calc_ordinal_duration(9)
π 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 π₯
- kernel file
./drivers/char/tpm/tpm1-cmd.cπ β go read the source bestie, it's right there tpm1_startup(9)tpm1_get_random(9)tpm1_continue_selftest(9)tpm1_do_selftest(9)tpm1_auto_startup(9)tpm1_pm_suspend(9)tpm1_get_pcr_allocation(9)
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
- 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