Lines Matching defs:file

42 static int seq_open_net(struct inode *inode, struct file *file)
50 if (file->f_mode & FMODE_WRITE && !PDE(inode)->write)
57 p = __seq_open_private(file, PDE(inode)->seq_ops, state_size);
68 static int seq_release_net(struct inode *ino, struct file *f)
122 * proc_create_net_data_write - Create a writable net_ns-specific proc file
123 * @name: The name of the file.
124 * @mode: The file's access mode.
126 * @ops: The seq_file ops with which to read the file.
127 * @write: The write method which which to 'modify' the file.
130 * Create a network namespaced proc file in the @parent directory with the
131 * specified @name and @mode that allows reading of a file that displays a
132 * series of elements and also provides for the file accepting writes that have
143 * PDE_DATA() on the file inode. The network namespace must be accessed by
166 static int single_open_net(struct inode *inode, struct file *file)
176 err = single_open(file, de->single_show, net);
182 static int single_release_net(struct inode *ino, struct file *f)
214 * proc_create_net_single_write - Create a writable net_ns-specific proc file
215 * @name: The name of the file.
216 * @mode: The file's access mode.
218 * @show: The seqfile show method with which to read the file.
219 * @write: The write method which which to 'modify' the file.
222 * Create a network-namespaced proc file in the @parent directory with the
223 * specified @name and @mode that allows reading of a file that displays a
224 * single element rather than a series and also provides for the file accepting
235 * PDE_DATA() on the file inode. The network namespace must be accessed by
315 static int proc_tgid_net_readdir(struct file *file, struct dir_context *ctx)
321 net = get_proc_task_net(file_inode(file));
323 ret = proc_readdir_de(file, ctx, net->proc_net);