Lines Matching refs: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,
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))
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 *);