Lines Matching refs:file

166 static int nst_fop_open(struct inode *inode, struct file *file)  in nst_fop_open()  argument
170 dummy_nst = __seq_open_private(file, &nst_seq_ops, sizeof(*dummy_nst)); in nst_fop_open()
178 static int nst_fop_release(struct inode *inode, struct file *file) in nst_fop_release() argument
180 struct seq_file *seq = file->private_data; in nst_fop_release()
184 return seq_release_private(inode, file); in nst_fop_release()
380 static int sc_common_open(struct file *file, int ctxt) in sc_common_open() argument
389 sd = __seq_open_private(file, &sc_seq_ops, sizeof(*sd)); in sc_common_open()
403 static int sc_fop_release(struct inode *inode, struct file *file) in sc_fop_release() argument
405 struct seq_file *seq = file->private_data; in sc_fop_release()
411 return seq_release_private(inode, file); in sc_fop_release()
414 static int stats_fop_open(struct inode *inode, struct file *file) in stats_fop_open() argument
416 return sc_common_open(file, SHOW_SOCK_STATS); in stats_fop_open()
426 static int sc_fop_open(struct inode *inode, struct file *file) in sc_fop_open() argument
428 return sc_common_open(file, SHOW_SOCK_CONTAINERS); in sc_fop_open()
452 static int nodes_fop_open(struct inode *inode, struct file *file) in nodes_fop_open() argument
462 file->private_data = buf; in nodes_fop_open()
467 static int o2net_debug_release(struct inode *inode, struct file *file) in o2net_debug_release() argument
469 kfree(file->private_data); in o2net_debug_release()
473 static ssize_t o2net_debug_read(struct file *file, char __user *buf, in o2net_debug_read() argument
476 return simple_read_from_buffer(buf, nbytes, ppos, file->private_data, in o2net_debug_read()
477 i_size_read(file->f_mapping->host)); in o2net_debug_read()