tpmm_chip_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

tpmm_chip_alloc(9) β€” Kernel API Manual πŸ’…

🌸 NAME 🌸

tpmm_chip_alloc β€” allocate a new struct tpm_chip instance. That's the assignment, bestie. πŸ’–

✨ SYNOPSIS ✨

struct tpm_chip * tpmm_chip_alloc (struct device *pdev , const struct
       tpm_class_ops *ops );

no cap, that's the whole signature. πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • pdev β€” the parent device to which the chip is associated. It's giving "who's your parent device" energy. 🫢
  • ops β€” a struct tpm_class_ops instance. Literally the ops, handed over. πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this is the same as tpm_chip_alloc β€” no cap β€” except devm is used to do the put_device. The way that devm is the one doing the put_device? iconic. That's the plot, periodt. ✨

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/char/tpm/tpm-chip.c is main character energy. Also go check out tpm_chip_start(9), tpm_chip_stop(9), tpm_try_get_ops(9), tpm_put_ops(9), tpm_default_chip(9), tpm_dev_release(9), tpm_class_shutdown(9), and tpm_chip_alloc(9). iykyk πŸ’…


okay bye bestie β€” source/version is ./drivers/char/tpm, dated October 2026, and this page is tpmm_chip_alloc(9). πŸ’–βœ¨

πŸ“¦ where this page comes from