Lines Matching refs:file
14 struct file;
16 extern void fput(struct file *);
17 extern void fput_many(struct file *, unsigned int);
25 extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *,
27 extern struct file *alloc_file_clone(struct file *, int flags,
30 static inline void fput_light(struct file *file, int fput_needed) in fput_light() argument
33 fput(file); in fput_light()
37 struct file *file; member
46 fput(fd.file); in fdput()
49 extern struct file *fget(unsigned int fd);
50 extern struct file *fget_many(unsigned int fd, unsigned int refs);
51 extern struct file *fget_raw(unsigned int fd);
52 extern struct file *fget_task(struct task_struct *task, unsigned int fd);
56 extern void __f_unlock_pos(struct file *);
60 return (struct fd){(struct file *)(v & ~3),v & 3}; in __to_fd()
81 __f_unlock_pos(f.file); in fdput_pos()
85 extern int f_dupfd(unsigned int from, struct file *file, unsigned flags);
86 extern int replace_fd(unsigned fd, struct file *file, unsigned flags);
93 extern void fd_install(unsigned int fd, struct file *file);
95 extern int __receive_fd(struct file *file, int __user *ufd,
98 extern int receive_fd(struct file *file, unsigned int o_flags);
100 static inline int receive_fd_user(struct file *file, int __user *ufd, in receive_fd_user() argument
105 return __receive_fd(file, ufd, o_flags); in receive_fd_user()
107 int receive_fd_replace(int new_fd, struct file *file, unsigned int o_flags);
110 extern void __fput_sync(struct file *);