Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v4.12-rc5 27 lines 739 B view raw
1#ifndef _TPM_DEV_H 2#define _TPM_DEV_H 3 4#include "tpm.h" 5 6struct file_priv { 7 struct tpm_chip *chip; 8 9 /* Data passed to and from the tpm via the read/write calls */ 10 atomic_t data_pending; 11 struct mutex buffer_mutex; 12 13 struct timer_list user_read_timer; /* user needs to claim result */ 14 struct work_struct work; 15 16 u8 data_buffer[TPM_BUFSIZE]; 17}; 18 19void tpm_common_open(struct file *file, struct tpm_chip *chip, 20 struct file_priv *priv); 21ssize_t tpm_common_read(struct file *file, char __user *buf, 22 size_t size, loff_t *off); 23ssize_t tpm_common_write(struct file *file, const char __user *buf, 24 size_t size, loff_t *off, struct tpm_space *space); 25void tpm_common_release(struct file *file, struct file_priv *priv); 26 27#endif