Home
last modified time | relevance | path

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

12

/xnu-12377.41.6/tools/lldbmacros/
H A Dkevent.py16 if int((fd_wqkqueue := proc.p_fd.fd_wqkqueue)) != 0:
31 proc_filedesc = addressof(proc.p_fd)
56 proc_filedesc = addressof(proc.p_fd)
87 proc_filedesc = addressof(proc.p_fd)
89 if int(proc.p_fd.fd_knlist) != 0:
90 for i in range(proc.p_fd.fd_knlistsize):
91 for kn in IterateListEntry(proc.p_fd.fd_knlist[i], 'kn_link', list_prefix='s'):
93 if int(proc.p_fd.fd_knhash) != 0:
94 for i in range(proc.p_fd.fd_knhashmask + 1):
95 for kn in IterateListEntry(proc.p_fd.fd_knhash[i], 'kn_link', list_prefix='s'):
[all …]
H A Dworkqueue.py78 kq = p.p_fd.fd_wqkqueue
98 kq = proc.p_fd.fd_wqkqueue
H A Dskywalk.py21 proc_filedesc = addressof(proc.p_fd)
514 proc_filedesc = addressof(proc.p_fd)
H A Dprocess.py978 proc_filedesc = addressof(proc.p_fd)
2438 proc_filedesc = addressof(proc.p_fd)
H A Dmemory.py1961 proc_filedesc = addressof(proc.p_fd)
2273 fdptr = addressof(procptr.p_fd)
H A Dnet.py619 proc_filedesc = addressof(proc.p_fd)
/xnu-12377.41.6/bsd/kern/
H A Dkern_descrip.c410 p->p_fd.fd_ofiles[fd] = NULL; in procfdtbl_reservefd()
411 p->p_fd.fd_ofileflags[fd] |= UF_RESERVED; in procfdtbl_reservefd()
418 p->p_fd.fd_ofiles[fd] = fp; in procfdtbl_releasefd()
420 p->p_fd.fd_ofileflags[fd] &= ~UF_RESERVED; in procfdtbl_releasefd()
421 if ((p->p_fd.fd_ofileflags[fd] & UF_RESVWAIT) == UF_RESVWAIT) { in procfdtbl_releasefd()
422 p->p_fd.fd_ofileflags[fd] &= ~UF_RESVWAIT; in procfdtbl_releasefd()
423 wakeup(&p->p_fd); in procfdtbl_releasefd()
430 p->p_fd.fd_ofileflags[fd] |= UF_RESVWAIT; in procfdtbl_waitfd()
431 msleep(&p->p_fd, &p->p_fd.fd_lock, PRIBIO, "ftbl_waitfd", NULL); in procfdtbl_waitfd()
439 waiting = (p->p_fd.fd_ofileflags[fd] & UF_RESVWAIT); in procfdtbl_clearfd()
[all …]
H A Dproc_info.c522 if (p->p_fd.fd_nfiles > 0) { in proc_pidfdlist()
523 numfds = (uint32_t)p->p_fd.fd_nfiles; in proc_pidfdlist()
571 *count = (size_t)p->p_fd.fd_afterlast; in proc_fdlist()
807 pbsd->pbi_nfiles = p->p_fd.fd_nfiles; in proc_pidbsdinfo()
1345 if (p->p_fd.fd_cdir) { in proc_pidvnodepathinfo()
1346 vncdirvp = p->p_fd.fd_cdir; in proc_pidvnodepathinfo()
1347 vncdirid = p->p_fd.fd_cdir->v_id; in proc_pidvnodepathinfo()
1349 if (p->p_fd.fd_rdir) { in proc_pidvnodepathinfo()
1350 vnrdirvp = p->p_fd.fd_rdir; in proc_pidvnodepathinfo()
1351 vnrdirid = p->p_fd.fd_rdir->v_id; in proc_pidvnodepathinfo()
[all …]
H A Dimageboot.c511 kernproc->p_fd.fd_cdir = newdp; in imageboot_mount_image()
956 kernproc->p_fd.fd_cdir = NULL; in imageboot_mount_ramdisk()
996 kernproc->p_fd.fd_cdir = newdp; in imageboot_mount_ramdisk()
H A Dkern_event.c460 kqu.kqwq = p->p_fd.fd_wqkqueue; in kqr_kqueue()
2970 struct filedesc *fdp = &p->p_fd; in kqueue_dealloc()
3168 if (!os_atomic_cmpxchgv(&p->p_fd.fd_wqkqueue, NULL, kqwq, &tmp, release)) { in kqworkq_alloc()
3419 struct filedesc *fdp = &kqwl->kqwl_p->p_fd; in kqworkloop_dealloc()
3559 struct filedesc *fdp = &p->p_fd; in kqworkloop_get_or_create()
3762 struct filedesc *fdp = &p->p_fd; in knotes_dealloc()
3825 struct filedesc *fdp = &p->p_fd; in kqworkloops_dealloc()
4861 struct filedesc *fdp = &p->p_fd;
6433 struct kqworkq *kqwq = (struct kqworkq *)p->p_fd.fd_wqkqueue;
6704 struct filedesc *fdt = &p->p_fd;
[all …]
H A Dsys_generic.c1297 if (uap->nd > p->p_fd.fd_nfiles) { in select_internal()
1298 uap->nd = p->p_fd.fd_nfiles; /* forgiving; slightly wrong */ in select_internal()
1990 wakeup(&p->p_fd.fd_fpdrainwait); in selcount()
2077 if (p->p_fd.fd_fpdrainwait) { in seldrop_locked()
2078 p->p_fd.fd_fpdrainwait = 0; in seldrop_locked()
2100 wakeup(&p->p_fd.fd_fpdrainwait); in seldrop()
H A Dbsd_init.c435 kernproc->p_fd.fd_cdir = new_rootvnode; in set_rootvnode()
561 kernproc->p_fd.fd_cmask = (mode_t)cmask; in bsd_init()
H A Dkern_guarded.c311 cmode = ((uap->mode & ~p->p_fd.fd_cmask) & ALLPERMS) & ~S_ISTXT; in guarded_open_np()
364 cmode = ((uap->mode & ~p->p_fd.fd_cmask) & ALLPERMS) & ~S_ISTXT; in guarded_open_dprotected_np()
H A Dkern_fork.c1100 if (fdt_fork(&child_proc->p_fd, parent_proc, parent_uthread->uu_cdir, in_exec) != 0) { in forkproc()
H A Dkern_proc.c5089 retval = (p->p_fd.fd_rdir != NULL) ? 1 : 0; in proc_chrooted()
5254 struct filedesc *fdp = &p->p_fd; in proc_set_filedesc_limits()
5277 struct filedesc *fdp = &p->p_fd; in proc_set_kqworkloop_limits()
5369 struct filedesc *fdp = &p->p_fd; in proc_filedesc_ast()
H A Duipc_usrreq.c1216 VATTR_SET(&va, va_mode, (ACCESSPERMS & ~p->p_fd.fd_cmask)); in unp_bind()
H A Dkern_exec.c2159 (void *)p->p_fd.fd_rdir, cputype, cpu_subtype, reslide, in exec_mach_imgact()
3401 mode = ((mode & ~p->p_fd.fd_cmask) & ALLPERMS) & ~S_ISTXT; in exec_handle_file_actions()
/xnu-12377.41.6/bsd/dev/dtrace/scripts/
H A Ddarwin.d339 inline string cwd = curproc->p_fd.fd_cdir->v_name == NULL ?
340 "<unknown>" : stringof(curproc->p_fd.fd_cdir->v_name);
345 inline string root = curproc->p_fd.fd_rdir == NULL ? "/" :
346 curproc->p_fd.fd_rdir->v_name == NULL ? "<unknown>" :
347 stringof(curproc->p_fd.fd_rdir->v_name);
H A Dio.d245 (fd >= 0 && fd < curproc->p_fd.fd_afterlast) ?
246 (struct fileglob *)(curproc->p_fd.fd_ofiles[fd]->fp_glob) :
/xnu-12377.41.6/bsd/sys/
H A Dfiledesc.h428 (&(p)->p_fd.fd_ofiles[(fd)])
430 (&(p)->p_fd.fd_ofileflags[(fd)])
H A Dproc_internal.h314 struct filedesc p_fd; /* open files structure */ member
/xnu-12377.41.6/bsd/vfs/
H A Dvfs_lookup.c407 if (fdt_flag_test(&p->p_fd, FD_CHROOT)) { in namei()
409 if (fdt_flag_test(&p->p_fd, FD_CHROOT)) { in namei()
410 rdvp = p->p_fd.fd_rdir; in namei()
485 if (fdt_flag_test(&p->p_fd, FD_CHROOT)) { in namei()
486 ndp->ni_rootdir = p->p_fd.fd_rdir; in namei()
495 } else if (fdt_flag_test(&p->p_fd, FD_CHROOT)) { in namei()
H A Dvfs_syscalls.c2663 struct filedesc *fdp = &p->p_fd; in checkdirs_callback()
4459 tvp = p->p_fd.fd_cdir; in fchdir()
4460 p->p_fd.fd_cdir = vp; in fchdir()
4533 tvp = p->p_fd.fd_cdir; in chdir_internal()
4534 p->p_fd.fd_cdir = ndp->ni_vp; in chdir_internal()
4624 struct filedesc *fdp = &p->p_fd; in chroot()
5285 cmode = ((uap->mode & ~p->p_fd.fd_cmask) & ALLPERMS) & ~S_ISTXT; in open_extended()
5327 struct filedesc *fdp = &vfs_context_proc(ctx)->p_fd; in openat_dprotected_internal()
5404 struct filedesc *fdp = &vfs_context_proc(ctx)->p_fd; in openat_internal()
5710 VATTR_SET(&va, va_mode, (uap->mode & ALLPERMS) & ~p->p_fd.fd_cmask); in mknod()
[all …]
H A Dvfs_cache.c538 proc_root_dir_vp = vfs_context_proc(ctx)->p_fd.fd_rdir; in build_path_with_parent()
/xnu-12377.41.6/bsd/miscfs/devfs/
H A Ddevfs_fdesc_support.c334 if (fd < 0 || fd >= p->p_fd.fd_nfiles || in devfs_devfd_lookup()
633 if (i >= p->p_fd.fd_nfiles || i < 0) { in devfs_devfd_readdir()

12