Lines Matching refs:file
41 static ssize_t tomoyo_write_self(struct file *file, const char __user *buf, in tomoyo_write_self() argument
100 static ssize_t tomoyo_read_self(struct file *file, char __user *buf, in tomoyo_read_self() argument
132 static int tomoyo_open(struct inode *inode, struct file *file) in tomoyo_open() argument
134 const int key = ((u8 *) file_inode(file)->i_private) in tomoyo_open()
136 return tomoyo_open_control(key, file); in tomoyo_open()
145 static int tomoyo_release(struct inode *inode, struct file *file) in tomoyo_release() argument
147 tomoyo_close_control(file->private_data); in tomoyo_release()
160 static __poll_t tomoyo_poll(struct file *file, poll_table *wait) in tomoyo_poll() argument
162 return tomoyo_poll_control(file, wait); in tomoyo_poll()
175 static ssize_t tomoyo_read(struct file *file, char __user *buf, size_t count, in tomoyo_read() argument
178 return tomoyo_read_control(file->private_data, buf, count); in tomoyo_read()
191 static ssize_t tomoyo_write(struct file *file, const char __user *buf, in tomoyo_write() argument
194 return tomoyo_write_control(file->private_data, buf, count); in tomoyo_write()