Lines Matching refs:file
185 static int nst_fop_open(struct inode *inode, struct file *file) in nst_fop_open() argument
189 dummy_nst = __seq_open_private(file, &nst_seq_ops, sizeof(*dummy_nst)); in nst_fop_open()
197 static int nst_fop_release(struct inode *inode, struct file *file) in nst_fop_release() argument
199 struct seq_file *seq = file->private_data; in nst_fop_release()
203 return seq_release_private(inode, file); in nst_fop_release()
399 static int sc_common_open(struct file *file, int ctxt) in sc_common_open() argument
408 sd = __seq_open_private(file, &sc_seq_ops, sizeof(*sd)); in sc_common_open()
422 static int sc_fop_release(struct inode *inode, struct file *file) in sc_fop_release() argument
424 struct seq_file *seq = file->private_data; in sc_fop_release()
429 return seq_release_private(inode, file); in sc_fop_release()
432 static int stats_fop_open(struct inode *inode, struct file *file) in stats_fop_open() argument
434 return sc_common_open(file, SHOW_SOCK_STATS); in stats_fop_open()
444 static int sc_fop_open(struct inode *inode, struct file *file) in sc_fop_open() argument
446 return sc_common_open(file, SHOW_SOCK_CONTAINERS); in sc_fop_open()
470 static int nodes_fop_open(struct inode *inode, struct file *file) in nodes_fop_open() argument
480 file->private_data = buf; in nodes_fop_open()
485 static int o2net_debug_release(struct inode *inode, struct file *file) in o2net_debug_release() argument
487 kfree(file->private_data); in o2net_debug_release()
491 static ssize_t o2net_debug_read(struct file *file, char __user *buf, in o2net_debug_read() argument
494 return simple_read_from_buffer(buf, nbytes, ppos, file->private_data, in o2net_debug_read()
495 i_size_read(file->f_mapping->host)); in o2net_debug_read()