vtpmx_ioc_new_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ vtpmx_ioc_new_dev(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual entry for vtpmx_ioc_new_dev(9) β€” it's the handler for the %VTPM_PROXY_IOC_NEW_DEV ioctl, and we're gonna vibe-check it together. no cap. πŸ’…

✨ NAME ✨

vtpmx_ioc_new_dev β€” handler for the %VTPM_PROXY_IOC_NEW_DEV ioctl

πŸ¦‹ SYNOPSIS πŸ¦‹

long vtpmx_ioc_new_dev (struct file *file , unsigned int ioctl ,
       unsigned long arg );

🌸 ARGUMENTS 🌸

  • file β€” /dev/vtpmx
  • ioctl β€” the ioctl number
  • arg β€” pointer to the struct vtpmx_proxy_new_dev

πŸ’– DESCRIPTION πŸ’–

okay so picture this: vtpmx_ioc_new_dev creates an anonymous file, and that anonymous file is used by the process acting as a TPM to communicate with the client processes. it also adds a new TPM device, and data is proxied through that device to this TPM acting process. the caller gets a file descriptor to communicate with the clients, plus the major and minor numbers for the TPM device. literally the whole handoff, periodt. ✨

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/char/tpm/tpm_vtpm_proxy.c β€” and bestie, also check vtpm_proxy_fops_read(9), vtpm_proxy_fops_write(9), and vtpm_proxy_fops_undo_open(9). iykyk. 🫢


mwah πŸ’‹ β€” source/version: ./drivers/char/tpm, date: October 2026. bye bestie, go slay those TPM proxies. 🌈

πŸ“¦ where this page comes from