Lines Matching full:file
29 * @file: Pointer to "struct file".
39 static ssize_t tomoyo_write_self(struct file *file, const char __user *buf, in tomoyo_write_self() argument
98 * @file: Pointer to "struct file".
105 static ssize_t tomoyo_read_self(struct file *file, char __user *buf, in tomoyo_read_self() argument
132 * @file: Pointer to "struct file".
136 static int tomoyo_open(struct inode *inode, struct file *file) in tomoyo_open() argument
138 const int key = ((u8 *) file->f_path.dentry->d_inode->i_private) in tomoyo_open()
140 return tomoyo_open_control(key, file); in tomoyo_open()
147 * @file: Pointer to "struct file".
151 static int tomoyo_release(struct inode *inode, struct file *file) in tomoyo_release() argument
153 return tomoyo_close_control(file->private_data); in tomoyo_release()
159 * @file: Pointer to "struct file".
164 static unsigned int tomoyo_poll(struct file *file, poll_table *wait) in tomoyo_poll() argument
166 return tomoyo_poll_control(file, wait); in tomoyo_poll()
172 * @file: Pointer to "struct file".
179 static ssize_t tomoyo_read(struct file *file, char __user *buf, size_t count, in tomoyo_read() argument
182 return tomoyo_read_control(file->private_data, buf, count); in tomoyo_read()
188 * @file: Pointer to "struct file".
195 static ssize_t tomoyo_write(struct file *file, const char __user *buf, in tomoyo_write() argument
198 return tomoyo_write_control(file->private_data, buf, count); in tomoyo_write()
220 * @name: The name of the interface file.
221 * @mode: The permission of the interface file.