Lines Matching refs:filp
87 static int tasks_open(struct inode *inode, struct file *filp) in tasks_open() argument
89 int ret = seq_open(filp, &tasks_seq_operations); in tasks_open()
91 struct seq_file *seq = filp->private_data; in tasks_open()
95 seq_release(inode, filp); in tasks_open()
104 tasks_release(struct inode *inode, struct file *filp) in tasks_release() argument
106 struct seq_file *seq = filp->private_data; in tasks_release()
110 return seq_release(inode, filp); in tasks_release()
189 xprt_info_open(struct inode *inode, struct file *filp) in xprt_info_open() argument
194 ret = single_open(filp, xprt_info_show, xprt); in xprt_info_open()
198 single_release(inode, filp); in xprt_info_open()
206 xprt_info_release(struct inode *inode, struct file *filp) in xprt_info_release() argument
211 return single_release(inode, filp); in xprt_info_release()
261 fault_open(struct inode *inode, struct file *filp) in fault_open() argument
263 filp->private_data = kmalloc(128, GFP_KERNEL); in fault_open()
264 if (!filp->private_data) in fault_open()
270 fault_release(struct inode *inode, struct file *filp) in fault_release() argument
272 kfree(filp->private_data); in fault_release()
277 fault_disconnect_read(struct file *filp, char __user *user_buf, in fault_disconnect_read() argument
280 char *buffer = (char *)filp->private_data; in fault_disconnect_read()
288 fault_disconnect_write(struct file *filp, const char __user *user_buf, in fault_disconnect_write() argument