Lines Matching full:file

16 struct file;
18 extern void fput(struct file *);
26 extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *,
28 extern struct file *alloc_file_pseudo_noaccount(struct inode *, struct vfsmount *,
30 extern struct file *alloc_file_clone(struct file *, int flags,
33 /* either a reference to struct file + flags
44 #define fd_file(f) ((struct file *)((f).word & ~(FDPUT_FPUT|FDPUT_POS_UNLOCK)))
51 static inline struct fd BORROWED_FD(struct file *f) in BORROWED_FD()
55 static inline struct fd CLONED_FD(struct file *f) in CLONED_FD()
66 extern struct file *fget(unsigned int fd);
67 extern struct file *fget_raw(unsigned int fd);
68 extern struct file *fget_task(struct task_struct *task, unsigned int fd);
69 extern struct file *fget_task_next(struct task_struct *task, unsigned int *fd);
70 extern void __f_unlock_pos(struct file *);
87 extern int f_dupfd(unsigned int from, struct file *file, unsigned flags);
88 extern int replace_fd(unsigned fd, struct file *file, unsigned flags);
97 DEFINE_FREE(fput, struct file *, if (!IS_ERR_OR_NULL(_T)) fput(_T))
104 * struct file *f;
119 extern void fd_install(unsigned int fd, struct file *file);
121 int receive_fd(struct file *file, int __user *ufd, unsigned int o_flags);
123 int receive_fd_replace(int new_fd, struct file *file, unsigned int o_flags);
126 extern void __fput_sync(struct file *);
131 * fd_prepare: Combined fd + file allocation cleanup class.
134 * @__file: Allocated struct file pointer (may not be accessed directly)
136 * Allocates an fd and a file together. On error paths, automatically cleans
137 * up whichever resource was successfully allocated. Allows flexible file
145 struct file *__file; /* do not access directly */
187 * @_file_owned: expression that returns struct file *
189 * Returns a struct fd_prepare with fd, file, and err set.
191 * fd succeeds but file_init_expr fails, file will be ERR_PTR and err
215 * @_file_owned: struct file to take ownership of (can be expression)
221 * fd_publish - Publish prepared fd and file to the fd table.
246 * FD_ADD - Allocate and install an fd and file in one step.
248 * @_file_owned: struct file to take ownership of