Lines Matching refs:filp
86 static int tasks_open(struct inode *inode, struct file *filp) in tasks_open() argument
88 int ret = seq_open(filp, &tasks_seq_operations); in tasks_open()
90 struct seq_file *seq = filp->private_data; in tasks_open()
94 seq_release(inode, filp); in tasks_open()
103 tasks_release(struct inode *inode, struct file *filp) in tasks_release() argument
105 struct seq_file *seq = filp->private_data; in tasks_release()
109 return seq_release(inode, filp); in tasks_release()
186 xprt_info_open(struct inode *inode, struct file *filp) in xprt_info_open() argument
191 ret = single_open(filp, xprt_info_show, xprt); in xprt_info_open()
195 single_release(inode, filp); in xprt_info_open()
203 xprt_info_release(struct inode *inode, struct file *filp) in xprt_info_release() argument
208 return single_release(inode, filp); in xprt_info_release()
250 fault_open(struct inode *inode, struct file *filp) in fault_open() argument
252 filp->private_data = kmalloc(128, GFP_KERNEL); in fault_open()
253 if (!filp->private_data) in fault_open()
259 fault_release(struct inode *inode, struct file *filp) in fault_release() argument
261 kfree(filp->private_data); in fault_release()
266 fault_disconnect_read(struct file *filp, char __user *user_buf, in fault_disconnect_read() argument
269 char *buffer = (char *)filp->private_data; in fault_disconnect_read()
277 fault_disconnect_write(struct file *filp, const char __user *user_buf, in fault_disconnect_write() argument