Lines Matching defs:file
31 * @file: Pointer to "struct file".
41 static ssize_t tomoyo_write_self(struct file *file, const char __user *buf,
93 * @file: Pointer to "struct file".
100 static ssize_t tomoyo_read_self(struct file *file, char __user *buf,
128 * @file: Pointer to "struct file".
132 static int tomoyo_open(struct inode *inode, struct file *file)
134 const u8 key = (uintptr_t) file_inode(file)->i_private;
136 return tomoyo_open_control(key, file);
143 * @file: Pointer to "struct file".
146 static int tomoyo_release(struct inode *inode, struct file *file)
148 tomoyo_close_control(file->private_data);
155 * @file: Pointer to "struct file".
161 static __poll_t tomoyo_poll(struct file *file, poll_table *wait)
163 return tomoyo_poll_control(file, wait);
169 * @file: Pointer to "struct file".
176 static ssize_t tomoyo_read(struct file *file, char __user *buf, size_t count,
179 return tomoyo_read_control(file->private_data, buf, count);
185 * @file: Pointer to "struct file".
192 static ssize_t tomoyo_write(struct file *file, const char __user *buf,
195 return tomoyo_write_control(file->private_data, buf, count);
217 * @name: The name of the interface file.
218 * @mode: The permission of the interface file.