Lines Matching refs:file

74 struct file;
85 off_t foffset_lock(struct file *fp, int flags);
86 void foffset_lock_uio(struct file *fp, struct uio *uio, int flags);
87 void foffset_unlock(struct file *fp, off_t val, int flags);
88 void foffset_unlock_uio(struct file *fp, struct uio *uio, int flags);
91 foffset_get(struct file *fp) in foffset_get()
97 typedef int fo_rdwr_t(struct file *fp, struct uio *uio,
100 typedef int fo_truncate_t(struct file *fp, off_t length,
102 typedef int fo_ioctl_t(struct file *fp, u_long com, void *data,
104 typedef int fo_poll_t(struct file *fp, int events,
106 typedef int fo_kqfilter_t(struct file *fp, struct knote *kn);
107 typedef int fo_stat_t(struct file *fp, struct stat *sb,
109 typedef int fo_close_t(struct file *fp, struct thread *td);
110 typedef int fo_chmod_t(struct file *fp, mode_t mode,
112 typedef int fo_chown_t(struct file *fp, uid_t uid, gid_t gid,
114 typedef int fo_sendfile_t(struct file *fp, int sockfd, struct uio *hdr_uio,
117 typedef int fo_seek_t(struct file *fp, off_t offset, int whence,
119 typedef int fo_fill_kinfo_t(struct file *fp, struct kinfo_file *kif,
121 typedef int fo_mmap_t(struct file *fp, vm_map_t map, vm_offset_t *addr,
124 typedef int fo_aio_queue_t(struct file *fp, struct kaiocb *job);
125 typedef int fo_add_seals_t(struct file *fp, int flags);
126 typedef int fo_get_seals_t(struct file *fp, int *flags);
127 typedef int fo_fallocate_t(struct file *fp, off_t offset, off_t len,
129 typedef int fo_fspacectl_t(struct file *fp, int cmd,
132 typedef int fo_cmp_t(struct file *fp, struct file *fp1, struct thread *td);
133 typedef int fo_spare_t(struct file *fp);
185 struct file { struct
256 int fget(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp);
258 vm_prot_t *maxprotp, struct file **fpp);
260 struct file **fpp);
262 struct file **fpp);
264 int needfcntl, struct file **fpp);
265 int _fdrop(struct file *fp, struct thread *td);
266 int fget_remote(struct thread *td, struct proc *p, int fd, struct file **fpp);
282 int file_kcmp_generic(struct file *fp1, struct file *fp2, struct thread *td);
284 void finit(struct file *, u_int, short, void *, struct fileops *);
285 void finit_vnode(struct file *, u_int, void *, struct fileops *);
300 fhold(struct file *fp) in fhold()
306 struct file *_fp; \
317 struct file *_fp; \
340 fo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in fo_read()
348 fo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in fo_write()
356 fo_truncate(struct file *fp, off_t length, struct ucred *active_cred, in fo_truncate()
364 fo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, in fo_ioctl()
372 fo_poll(struct file *fp, int events, struct ucred *active_cred, in fo_poll()
380 fo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) in fo_stat()
387 fo_close(struct file *fp, struct thread *td) in fo_close()
394 fo_kqfilter(struct file *fp, struct knote *kn) in fo_kqfilter()
401 fo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in fo_chmod()
409 fo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, in fo_chown()
417 fo_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio, in fo_sendfile()
427 fo_seek(struct file *fp, off_t offset, int whence, struct thread *td) in fo_seek()
434 fo_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp) in fo_fill_kinfo()
441 fo_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t size, in fo_mmap()
453 fo_aio_queue(struct file *fp, struct kaiocb *job) in fo_aio_queue()
460 fo_add_seals(struct file *fp, int seals) in fo_add_seals()
469 fo_get_seals(struct file *fp, int *seals) in fo_get_seals()
478 fo_fallocate(struct file *fp, off_t offset, off_t len, struct thread *td) in fo_fallocate()
487 fo_fspacectl(struct file *fp, int cmd, off_t *offset, off_t *length, in fo_fspacectl()
498 fo_cmp(struct file *fp1, struct file *fp2, struct thread *td) in fo_cmp()