Home
last modified time | relevance | path

Searched refs:p_fd (Results 1 – 25 of 35) sorted by relevance

12

/dragonfly/sys/kern/
HDsubr_firmware.c386 spin_lock_wr(&p->p_fd->fd_spin); in set_rootvnode()
387 if (p->p_fd->fd_cdir == NULL) { in set_rootvnode()
388 p->p_fd->fd_cdir = rootvnode; in set_rootvnode()
391 if (p->p_fd->fd_rdir == NULL) { in set_rootvnode()
392 p->p_fd->fd_rdir = rootvnode; in set_rootvnode()
395 spin_unlock_wr(&p->p_fd->fd_spin); in set_rootvnode()
HDvfs_conf.c489 p->p_fd->fd_cdir = vp; in vfs_mountroot_try()
490 vref(p->p_fd->fd_cdir); in vfs_mountroot_try()
491 p->p_fd->fd_rdir = vp; in vfs_mountroot_try()
492 vref(p->p_fd->fd_rdir); in vfs_mountroot_try()
495 cache_copy(&mp->mnt_ncmountpt, &p->p_fd->fd_ncdir); in vfs_mountroot_try()
496 cache_copy(&mp->mnt_ncmountpt, &p->p_fd->fd_nrdir); in vfs_mountroot_try()
HDkern_descrip.c389 fdp = td->td_proc->p_fd; in _holdfp_cache()
485 fdp = td->td_proc->p_fd; in _holdfp2()
516 fdp = td->td_proc->p_fd; in dropfp()
579 fdp = td->td_proc->p_fd; in fexitcache()
718 error = fgetfdflags(p->p_fd, fd, &tmp); in kern_fcntl()
725 error = fsetfdflags(p->p_fd, fd, UF_EXCLOSE); in kern_fcntl()
727 error = fclrfdflags(p->p_fd, fd, UF_EXCLOSE); in kern_fcntl()
755 closedcounter = p->p_fd->fd_closedcounter; in kern_fcntl()
854 if (checkfdclosed(td, p->p_fd, fd, fp, closedcounter)) { in kern_fcntl()
1001 struct filedesc *fdp = p->p_fd; in kern_dup()
[all …]
HDinit_main.c589 p->p_fd->fd_cdir = vp; in start_init()
590 vref(p->p_fd->fd_cdir); in start_init()
591 p->p_fd->fd_rdir = vp; in start_init()
592 vref(p->p_fd->fd_rdir); in start_init()
595 cache_copy(&mp->mnt_ncmountpt, &p->p_fd->fd_ncdir); in start_init()
596 cache_copy(&mp->mnt_ncmountpt, &p->p_fd->fd_nrdir); in start_init()
HDvfs_nlookup.c146 if (p && p->p_fd) { in nlookup_init()
149 nd->nl_basench = &p->p_fd->fd_nrdir; in nlookup_init()
152 cache_copy(&p->p_fd->fd_nrdir, &nd->nl_rootnch); in nlookup_init()
153 if (p->p_fd->fd_njdir.ncp) in nlookup_init()
154 cache_copy(&p->p_fd->fd_njdir, &nd->nl_jailnch); in nlookup_init()
159 nd->nl_basench = &p->p_fd->fd_ncdir; in nlookup_init()
162 cache_copy(&p->p_fd->fd_nrdir, &nd->nl_rootnch); in nlookup_init()
163 if (p->p_fd->fd_njdir.ncp) in nlookup_init()
164 cache_copy(&p->p_fd->fd_njdir, &nd->nl_jailnch); in nlookup_init()
225 nd->nl_basench = &p->p_fd->fd_nrdir; in nlookup_init_at()
[all …]
HDkern_fork.c357 if (p1->p_fd->fd_refcnt > 1) { in fork1()
546 p2->p_fd = fdinit(p1); in fork1()
549 error = fdcopy(p1, &p2->p_fd); in fork1()
556 p2->p_fd = fdshare(p1); in fork1()
835 kqueue_init(&lp2->lwp_kqueue, destproc->p_fd); in lwp_fork2()
HDsys_generic.c657 error = fclrfdflags(p->p_fd, fd, UF_EXCLOSE); in mapped_ioctl()
660 error = fsetfdflags(p->p_fd, fd, UF_EXCLOSE); in mapped_ioctl()
1160 if (nd > p->p_fd->fd_nfiles) /* limit kmalloc */ in doselect()
1161 nd = p->p_fd->fd_nfiles; in doselect()
1706 fsetfd(td->td_lwp->lwp_proc->p_fd, fp, fd); in socket_wait()
1707 fsetfdflags(td->td_proc->p_fd, fd, UF_EXCLOSE); in socket_wait()
1710 kqueue_init(&kq, td->td_lwp->lwp_proc->p_fd); in socket_wait()
HDvfs_syscalls.c556 if ((fdp = p->p_fd) != NULL) { in checkdirs_callback()
727 fdp = p->p_fd; in process_uses_mount()
1161 if (p && p->p_fd->fd_nrdir.mount == mp) in mount_path()
1162 nch = &p->p_fd->fd_nrdir; in mount_path()
1852 struct filedesc *fdp = p->p_fd; in sys_fchdir()
1920 struct filedesc *fdp = p->p_fd; in kern_chdir()
2021 struct filedesc *fdp = p->p_fd; in kern_chroot()
2161 struct filedesc *fdp = p->p_fd; in kern_open()
2331 vattr.va_mode = (mode & ALLPERMS) &~ p->p_fd->fd_cmask; in kern_mknod()
2456 vattr.va_mode = (mode & ALLPERMS) &~ p->p_fd->fd_cmask; in kern_mkfifo()
[all …]
HDuipc_usrreq.c1159 vattr.va_mode = (ACCESSPERMS & ~p->p_fd->fd_cmask); in unp_bind()
1427 if (p->p_fd->fd_rdir == unp->unp_rvnode) in prison_unpcb()
1639 struct filedesc *fdp = lp->lwp_proc->p_fd; in unp_fp_externalize()
1780 fdescp = p->p_fd; in unp_internalize()
HDkern_kinfo.c129 kp->kp_fd = (uintptr_t)p->p_fd; in fill_kinfo_proc()
HDsys_mqueue.c425 struct filedesc *fdp = p->p_fd; in sys_mq_open()
511 ~p->p_fd->fd_cmask) & ALLPERMS) & ~S_ISTXT; in sys_mq_open()
HDkern_proc.c2057 if (req->oldptr && p->p_fd != NULL && p->p_fd->fd_ncdir.ncp) { in sysctl_kern_proc_cwd()
2060 cache_copy(&p->p_fd->fd_ncdir, &nch); in sysctl_kern_proc_cwd()
HDuipc_syscalls.c97 struct filedesc *fdp = td->td_proc->p_fd; in kern_socket()
282 struct filedesc *fdp = td->td_proc->p_fd; in kern_accept()
692 fdp = td->td_proc->p_fd; in kern_socketpair()
HDkern_shutdown.c575 if ((fdp = p->p_fd) != NULL) { in shutdown_cleanup_proc()
/dragonfly/lib/libkcore/
HDkcore_file.c94 if (p.p_fd == NULL || procs->kp_stat == SIDL) in kcore_get_files()
96 if (kvm_read(kc->kd, (long)p.p_fd, &fdp, in kcore_get_files()
99 p.p_fd, procs->kp_pid); in kcore_get_files()
/dragonfly/games/hunt/huntd/
HDdriver.c259 if (FD_ISSET(pp->p_fd, &read_fds)) { in main()
266 if (FD_ISSET(pp->p_fd, &read_fds)) { in main()
702 savefd = pp->p_fd; in zap()
889 if (np->p_fd > Num_fds) in zap()
890 Num_fds = np->p_fd; in zap()
892 if (np->p_fd > Num_fds) in zap()
893 Num_fds = np->p_fd; in zap()
925 if (!FD_ISSET(pp->p_fd, &Have_inp)) in havechar()
928 FD_CLR(pp->p_fd, &Have_inp); in havechar()
933 ret = read(pp->p_fd, pp->p_cbuf, sizeof pp->p_cbuf); in havechar()
[all …]
HDserver.h150 int p_fd; member
HDanswer.c258 pp->p_fd = sp->fd; in answer_next()
/dragonfly/sys/dev/drm/
HDdrm_syncobj.c376 int drm_syncobj_get_fd(struct drm_syncobj *syncobj, int *p_fd) in drm_syncobj_get_fd() argument
400 *p_fd = fd; in drm_syncobj_get_fd()
406 u32 handle, int *p_fd) in drm_syncobj_handle_to_fd() argument
414 ret = drm_syncobj_get_fd(syncobj, p_fd); in drm_syncobj_handle_to_fd()
497 int handle, int *p_fd) in drm_syncobj_export_sync_file() argument
522 *p_fd = fd; in drm_syncobj_export_sync_file()
HDlinux_dma-buf.c112 fsetfd(curproc->p_fd, dmabuf->file, fd); in dma_buf_fd()
/dragonfly/sys/dev/drm/include/drm/
HDdrm_syncobj.h94 int drm_syncobj_get_fd(struct drm_syncobj *syncobj, int *p_fd);
/dragonfly/usr.bin/fstat/
HDfstat.c314 if (p->p_fd == NULL) in dofiles()
316 if (!kread(p->p_fd, &filed, sizeof (filed))) { in dofiles()
318 (void *)p->p_fd, Pid); in dofiles()
/dragonfly/sys/netproto/smb/
HDsmb_dev.c391 fp = holdfp_fdp(scred->scr_td->td_proc->p_fd, fd, FREAD|FWRITE); in smb_dev2share()
/dragonfly/sys/sys/
HDproc.h231 struct filedesc *p_fd; /* Ptr to open files structure. */ member
/dragonfly/sys/vfs/fuse/
HDfuse_vfsops.c163 file = holdfp_fdp(curthread->td_proc->p_fd, args.fd, FREAD | FWRITE); in fuse_mount()

12