tpm2_calc_ordinal_duration(9)
β¨ tpm2_calc_ordinal_duration(9) β¨
okay so bestie, welcome to the Kernel API Manual β today's main character is tpm2_calc_ordinal_duration(9) and honestly? she's giving quiet-utility-icon energy. let's get into it π
πΈ NAME πΈ
tpm2_calc_ordinal_duration β literally just calculates the maximum command duration. that's it. that's the vibe. π
π¦ SYNOPSIS π¦
unsigned long tpm2_calc_ordinal_duration (u32 ordinal );
no cap, that's the whole signature. unsigned long in, one u32 argument, and we're off β¨
π ARGUMENTS π
ordinalβ the TPM command ordinal. iykyk, it's the little number that tells the chip which command we're talking about π«Ά
π₯ DESCRIPTION π₯
so what does she actually do? she returns the maximum amount of time the chip is expected by the kernel to take, measured in jiffies. that's it, that's the whole tea β β a duration estimate, kernel-style.
bestie note: it's expected by kernel β so this is the kernel's assumption about the chip's worst-case timing, not some live measurement. don't go treating it like a stopwatch, fr fr π°οΈ
π§ SEE ALSO π§
the kernel file ./drivers/char/tpm/tpm2-cmd.c is where this lives, and here's her whole friend group β go say hi π
tpm2_pcr_read(9)tpm2_pcr_extend(9)tpm2_get_random(9)tpm2_flush_context(9)tpm2_get_tpm_pt(9)tpm2_shutdown(9)tpm2_do_selftest(9)tpm2_probe(9)tpm2_startup(9)tpm2_auto_startup(9)
and that's the whole page, bestie π this one's served up from ./drivers/char/tpm, dated October 2026 β tpm2_calc_ordinal_duration(9), signed, sealed, slayed. πβ¨
π¦ 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