Lines Matching refs:file
39 static ssize_t tomoyo_write_self(struct file *file, const char __user *buf, in tomoyo_write_self() argument
105 static ssize_t tomoyo_read_self(struct file *file, char __user *buf, in tomoyo_read_self() argument
136 static int tomoyo_open(struct inode *inode, struct file *file) in tomoyo_open() argument
138 const int key = ((u8 *) file_inode(file)->i_private) in tomoyo_open()
140 return tomoyo_open_control(key, file); in tomoyo_open()
149 static int tomoyo_release(struct inode *inode, struct file *file) in tomoyo_release() argument
151 tomoyo_close_control(file->private_data); in tomoyo_release()
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()
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()
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()