tpm2_calc_ordinal_duration(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ‘‹


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