Lines Matching refs:file
77 struct file;
88 off_t foffset_lock(struct file *fp, int flags);
89 void foffset_lock_uio(struct file *fp, struct uio *uio, int flags);
90 void foffset_unlock(struct file *fp, off_t val, int flags);
91 void foffset_unlock_uio(struct file *fp, struct uio *uio, int flags);
94 foffset_get(struct file *fp) in foffset_get()
100 typedef int fo_rdwr_t(struct file *fp, struct uio *uio,
103 typedef int fo_truncate_t(struct file *fp, off_t length,
105 typedef int fo_ioctl_t(struct file *fp, u_long com, void *data,
107 typedef int fo_poll_t(struct file *fp, int events,
109 typedef int fo_kqfilter_t(struct file *fp, struct knote *kn);
110 typedef int fo_stat_t(struct file *fp, struct stat *sb,
112 typedef int fo_close_t(struct file *fp, struct thread *td);
113 typedef int fo_chmod_t(struct file *fp, mode_t mode,
115 typedef int fo_chown_t(struct file *fp, uid_t uid, gid_t gid,
117 typedef int fo_sendfile_t(struct file *fp, int sockfd, struct uio *hdr_uio,
120 typedef int fo_seek_t(struct file *fp, off_t offset, int whence,
122 typedef int fo_fill_kinfo_t(struct file *fp, struct kinfo_file *kif,
124 typedef int fo_mmap_t(struct file *fp, vm_map_t map, vm_offset_t *addr,
127 typedef int fo_aio_queue_t(struct file *fp, struct kaiocb *job);
128 typedef int fo_add_seals_t(struct file *fp, int flags);
129 typedef int fo_get_seals_t(struct file *fp, int *flags);
130 typedef int fo_fallocate_t(struct file *fp, off_t offset, off_t len,
179 struct file { struct
246 int fget(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp);
248 vm_prot_t *maxprotp, struct file **fpp);
250 struct file **fpp);
252 struct file **fpp);
254 int needfcntl, struct file **fpp);
255 int _fdrop(struct file *fp, struct thread *td);
271 void finit(struct file *, u_int, short, void *, struct fileops *);
272 void finit_vnode(struct file *, u_int, void *, struct fileops *);
286 fhold(struct file *fp) in fhold()
292 struct file *_fp; \
303 struct file *_fp; \
326 fo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in fo_read()
334 fo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in fo_write()
342 fo_truncate(struct file *fp, off_t length, struct ucred *active_cred, in fo_truncate()
350 fo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, in fo_ioctl()
358 fo_poll(struct file *fp, int events, struct ucred *active_cred, in fo_poll()
366 fo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, in fo_stat()
374 fo_close(struct file *fp, struct thread *td) in fo_close()
381 fo_kqfilter(struct file *fp, struct knote *kn) in fo_kqfilter()
388 fo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in fo_chmod()
396 fo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, in fo_chown()
404 fo_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio, in fo_sendfile()
414 fo_seek(struct file *fp, off_t offset, int whence, struct thread *td) in fo_seek()
421 fo_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp) in fo_fill_kinfo()
428 fo_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t size, in fo_mmap()
440 fo_aio_queue(struct file *fp, struct kaiocb *job) in fo_aio_queue()
447 fo_add_seals(struct file *fp, int seals) in fo_add_seals()
456 fo_get_seals(struct file *fp, int *seals) in fo_get_seals()
465 fo_fallocate(struct file *fp, off_t offset, off_t len, struct thread *td) in fo_fallocate()