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 u8 key = (uintptr_t) file_inode(file)->i_private; in tomoyo_open()
136 return tomoyo_open_control(key, file); in tomoyo_open()
146 static int tomoyo_release(struct inode *inode, struct file *file) in tomoyo_release() argument
148 tomoyo_close_control(file->private_data); in tomoyo_release()
161 static __poll_t tomoyo_poll(struct file *file, poll_table *wait) in tomoyo_poll() argument
163 return tomoyo_poll_control(file, wait); in tomoyo_poll()
176 static ssize_t tomoyo_read(struct file *file, char __user *buf, size_t count, in tomoyo_read() argument
179 return tomoyo_read_control(file->private_data, buf, count); in tomoyo_read()
192 static ssize_t tomoyo_write(struct file *file, const char __user *buf, in tomoyo_write() argument
195 return tomoyo_write_control(file->private_data, buf, count); in tomoyo_write()