Lines Matching full:file

39 static int seq_open_net(struct inode *inode, struct file *file)
47 if (file->f_mode & FMODE_WRITE && !PDE(inode)->write)
54 p = __seq_open_private(file, PDE(inode)->seq_ops, state_size);
77 static int seq_release_net(struct inode *ino, struct file *f)
132 * proc_create_net_data_write - Create a writable net_ns-specific proc file
133 * @name: The name of the file.
134 * @mode: The file's access mode.
136 * @ops: The seq_file ops with which to read the file.
137 * @write: The write method with which to 'modify' the file.
138 * @state_size: The size of the per-file private state to allocate.
141 * Create a network namespaced proc file in the @parent directory with the
142 * specified @name and @mode that allows reading of a file that displays a
143 * series of elements and also provides for the file accepting writes that have
154 * pde_data() on the file inode. The network namespace must be accessed by
177 static int single_open_net(struct inode *inode, struct file *file)
187 err = single_open(file, de->single_show, net);
193 static int single_release_net(struct inode *ino, struct file *f)
225 * proc_create_net_single_write - Create a writable net_ns-specific proc file
226 * @name: The name of the file.
227 * @mode: The file's access mode.
229 * @show: The seqfile show method with which to read the file.
230 * @write: The write method with which to 'modify' the file.
233 * Create a network-namespaced proc file in the @parent directory with the
234 * specified @name and @mode that allows reading of a file that displays a
235 * single element rather than a series and also provides for the file accepting
246 * pde_data() on the file inode. The network namespace must be accessed by
328 static int proc_tgid_net_readdir(struct file *file, struct dir_context *ctx)
334 net = get_proc_task_net(file_inode(file));
336 ret = proc_readdir_de(file, ctx, net->proc_net);