github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/linux/dev_vtpm.txt (about) 1 # Copyright 2021 syzkaller project authors. All rights reserved. 2 # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 include <uapi/linux/fcntl.h> 5 include <uapi/linux/vtpm_proxy.h> 6 7 resource fd_vtpm[fd] 8 9 openat$vtpm(fd const[AT_FDCWD], file ptr[in, string["/dev/vtpmx"]], flags flags[open_flags], mode const[0]) fd_vtpm 10 11 vtpm_proxy_flags = VTPM_PROXY_FLAG_TPM2 12 13 vtpm_proxy_new_dev { 14 flags flags[vtpm_proxy_flags, int32] 15 tpm_num int32 16 fd fd 17 major int32 18 minor int32 19 } 20 21 ioctl$VTPM_PROXY_IOC_NEW_DEV(fd fd_vtpm, cmd const[VTPM_PROXY_IOC_NEW_DEV], arg ptr[inout, vtpm_proxy_new_dev])