tpm_cr50_request_locality(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tpm_cr50_request_locality(9) β€” kernel API manual, bestie edition ✨

okay so bestie, you're looking at the manual page for tpm_cr50_request_locality β€” yes that's the whole name, it's giving "my parents gave me a very specific name" energy, but it's iconic and it does exactly one thing. this is the kernel API manual for it, and we're gonna get through it together, no cap 🫢


🌸 NAME 🌸

tpm_cr50_request_locality β€” request TPM locality. that's it. that's the whole vibe. one job, done beautifully πŸ’…


✨ SYNOPSIS ✨

int tpm_cr50_request_locality (struct tpm_chip *chip , int loc );

literally just call it with a chip and a locality and it returns an int. simple. clean. main character energy πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • chip β€” a TPM chip. you know, the chip. the TPM one. bestie, hand it over 🫴
  • loc β€” the locality you wanna request. which locality? that one. the one you're asking for. πŸ’«

πŸ¦‹ RETURN πŸ¦‹

  • loc β€” Success. πŸŽ‰ so if you get your locality back, that's a win, we love that for you.
  • -errno β€” a POSIX error code. 😭 okay so if things go sideways it hands you a negative errno instead, and you deal with it like the strong independent kernel dev you are.
ngl, the return value lowkey being the same value you passed in for success is a whole mood. but that's what it says, so that's what we're saying. periodt.

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr β€” these all live in the kernel file ./drivers/char/tpm/tpm_tis_i2c_cr50.c and they're all linked up:

like, the entire cr50 crew showed up to the function's birthday party and honestly? we're obsessed πŸ’–


🌈 and that's the whole page!! this gem lives under ./drivers/char/tpm, it's stamped October 2026, and it's the tpm_cr50_request_locality(9) manual β€” go request that locality bestie, you got this πŸ’œβœ¨

πŸ“¦ where this page comes from