Lines Matching refs:filedesc

103 static int	closefp(struct filedesc *fdp, int fd, struct file *fp,
107 struct filedesc *fdp, int flags);
108 static int fd_first_free(struct filedesc *fdp, int low, int size);
109 static void fdgrowtable(struct filedesc *fdp, int nfd);
110 static void fdgrowtable_exp(struct filedesc *fdp, int nfd);
111 static void fdunused(struct filedesc *fdp, int fd);
112 static void fdused(struct filedesc *fdp, int fd);
155 struct filedesc *_fdp = (fdp); \
161 struct filedesc *_fdp = (fdp); \
186 struct filedesc fd_fd;
205 fd_first_free(struct filedesc *fdp, int low, int size) in fd_first_free()
234 fdlastfile_single(struct filedesc *fdp) in fdlastfile_single()
247 fdlastfile(struct filedesc *fdp) in fdlastfile()
255 fdisused(struct filedesc *fdp, int fd) in fdisused()
268 fdused_init(struct filedesc *fdp, int fd) in fdused_init()
277 fdused(struct filedesc *fdp, int fd) in fdused()
291 fdunused(struct filedesc *fdp, int fd) in fdunused()
318 fdfree(struct filedesc *fdp, int fd) in fdfree()
572 struct filedesc *fdp; in kern_fcntl()
1037 struct filedesc *fdp; in kern_dup()
1391 closefp_impl(struct filedesc *fdp, int fd, struct file *fp, struct thread *td, in closefp_impl()
1432 closefp_hl(struct filedesc *fdp, int fd, struct file *fp, struct thread *td, in closefp_hl()
1466 closefp(struct filedesc *fdp, int fd, struct file *fp, struct thread *td, in closefp()
1498 struct filedesc *fdp; in kern_close()
1517 struct filedesc *fdp; in close_range_flags()
1544 struct filedesc *fdp; in close_range_impl()
1978 fdgrowtable_exp(struct filedesc *fdp, int nfd) in fdgrowtable_exp()
1994 fdgrowtable(struct filedesc *fdp, int nfd) in fdgrowtable()
2096 struct filedesc *fdp = p->p_fd; in fdalloc()
2154 struct filedesc *fdp = p->p_fd; in fdallocn()
2256 _finstall(struct filedesc *fdp, struct file *fp, int fd, int flags, in _finstall()
2285 struct filedesc *fdp = td->td_proc->p_fd; in finstall_refed()
2321 struct filedesc *
2325 struct filedesc *newfdp; in fdinit()
2388 static struct filedesc *
2391 struct filedesc *fdp; in fdhold()
2413 fddrop(struct filedesc *fdp) in fddrop()
2450 struct filedesc *
2451 fdshare(struct filedesc *fdp) in fdshare()
2474 struct filedesc *tmp; in fdunshare()
2508 struct filedesc *
2509 fdcopy(struct filedesc *fdp) in fdcopy()
2511 struct filedesc *newfdp; in fdcopy()
2570 struct filedesc *fdp; in fdclearlocks()
2647 fdescfree_fds(struct thread *td, struct filedesc *fdp) in fdescfree_fds()
2688 struct filedesc *fdp; in fdescfree()
2762 struct filedesc *fdp; in fdsetugidsafety()
2796 struct filedesc *fdp = td->td_proc->p_fd; in fdclose()
2813 struct filedesc *fdp; in fdcloseexec()
2849 struct filedesc *fdp; in fdcheckstd()
2891 struct filedesc *fdp; in closef()
2992 fget_cap_noref(struct filedesc *fdp, int fd, const cap_rights_t *needrightsp, in fget_cap_noref()
3028 struct filedesc *fdp = td->td_proc->p_fd; in fget_cap()
3081 struct filedesc *fdp; in fget_remote()
3114 struct filedesc *fdp; in fget_remote_foreach()
3157 struct filedesc *fdp; in fgetvp_lookup_smr()
3228 struct filedesc *fdp; in fgetvp_lookup_smr()
3354 struct filedesc *fdp; in fget_unlocked_seq()
3413 struct filedesc *fdp; in fget_unlocked_seq()
3460 struct filedesc *fdp; in fget_unlocked_flags()
3538 fget_only_user(struct filedesc *fdp, int fd, const cap_rights_t *needrightsp, in fget_only_user()
3568 fget_only_user(struct filedesc *fdp, int fd, const cap_rights_t *needrightsp, in fget_only_user()
3668 struct filedesc *fdp; in fget_mmap()
3723 struct filedesc *fdp = td->td_proc->p_fd; in fget_fcntl()
3928 dupfdopen(struct thread *td, struct filedesc *fdp, int dfd, int mode, in dupfdopen()
4036 chroot_refuse_vdir_fds(struct filedesc *fdp) in chroot_refuse_vdir_fds()
4181 struct filedesc *fdp; in pwd_chroot()
4280 struct filedesc *fdp; in pwd_chroot_chdir()
4463 descrip_check_write_mp(struct filedesc *fdp, struct mount *mp) in descrip_check_write_mp()
4486 filedesc_to_leader_alloc(struct filedesc_to_leader *old, struct filedesc *fdp, in filedesc_to_leader_alloc()
4512 filedesc_to_leader_share(struct filedesc_to_leader *fdtol, struct filedesc *fdp) in filedesc_to_leader_share()
4521 filedesc_nfiles(struct filedesc *fdp) in filedesc_nfiles()
4541 struct filedesc *fdp; in proc_nfiles()
4580 struct filedesc *fdp; in sysctl_kern_file()
4713 struct kinfo_file *kif, struct filedesc *fdp, int flags) in export_file_to_kinfo()
4768 struct filedesc *fdp;
4835 struct filedesc *fdp; in kern_proc_filedesc_out()
5032 struct filedesc *fdp; in sysctl_kern_proc_ofiledesc()
5131 static SYSCTL_NODE(_kern_proc, KERN_PROC_FILEDESC, filedesc,
5266 struct filedesc *fdp; in file_to_first_proc()
5318 struct filedesc *fdp; in DB_SHOW_COMMAND_FLAGS()
5451 badfo_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp) in badfo_fill_kinfo()