tpm_cr50_request_locality(9)
π 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:
- struct
tpm_i2c_cr50_priv_data(9) tpm_cr50_i2c_int_handler(9)tpm_cr50_i2c_wait_tpm_ready(9)tpm_cr50_i2c_enable_tpm_irq(9)tpm_cr50_i2c_disable_tpm_irq(9)tpm_cr50_i2c_transfer_message(9)tpm_cr50_i2c_read(9)tpm_cr50_i2c_write(9)tpm_cr50_check_locality(9)tpm_cr50_release_locality(9)tpm_cr50_i2c_tis_status(9)tpm_cr50_i2c_tis_set_ready(9)tpm_cr50_i2c_get_burst_and_status(9)tpm_cr50_i2c_tis_recv(9)tpm_cr50_i2c_tis_send(9)tpm_cr50_i2c_req_canceled(9)tpm_cr50_vid_to_name(9)tpm_cr50_i2c_probe(9)tpm_cr50_i2c_remove(9)
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
- 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