Searched refs:p_fd (Results 1 - 20 of 20) sorted by relevance

/darwin-on-arm/xnu/bsd/sys/
H A Dfiledesc.h144 (&(p)->p_fd->fd_ofiles[(fd)])
146 (&(p)->p_fd->fd_ofileflags[(fd)])
H A Dproc_internal.h241 struct filedesc *p_fd; /* Ptr to open files structure. (PFDL) */ member in struct:proc
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_descrip.c294 p->p_fd->fd_ofiles[fd] = NULL;
295 p->p_fd->fd_ofileflags[fd] |= UF_RESERVED;
301 p->p_fd->fd_ofileflags[fd] |= (UF_RESERVED | UF_CLOSING);
308 p->p_fd->fd_ofiles[fd] = fp;
309 p->p_fd->fd_ofileflags[fd] &= ~UF_RESERVED;
310 if ((p->p_fd->fd_ofileflags[fd] & UF_RESVWAIT) == UF_RESVWAIT) {
311 p->p_fd->fd_ofileflags[fd] &= ~UF_RESVWAIT;
312 wakeup(&p->p_fd);
319 p->p_fd->fd_ofileflags[fd] |= UF_RESVWAIT;
320 msleep(&p->p_fd,
[all...]
H A Dproc_info.c324 numfds = p->p_fd->fd_nfiles;
347 for (n = 0; ((n < numfds) && (n < p->p_fd->fd_nfiles)); n++) {
348 if (((fp = p->p_fd->fd_ofiles[n]) != 0)
349 && ((p->p_fd->fd_ofileflags[n] & UF_RESERVED) == 0)) {
570 pbsd->pbi_nfiles = p->p_fd->fd_nfiles;
848 if (p->p_fd->fd_cdir) {
849 vncdirvp = p->p_fd->fd_cdir;
850 vncdirid = p->p_fd->fd_cdir->v_id;
852 if (p->p_fd->fd_rdir) {
853 vnrdirvp = p->p_fd
[all...]
H A Dbsd_init.c605 kernproc->p_fd = &filedesc0;
774 kernproc->p_fd->fd_cdir = NULL;
775 kernproc->p_fd->fd_rdir = NULL;
H A Dsys_generic.c1001 if (p->p_fd == NULL) {
1005 if (uap->nd > p->p_fd->fd_nfiles)
1006 uap->nd = p->p_fd->fd_nfiles; /* forgiving; slightly wrong */
1307 * EIO Invalid p->p_fd field XXX Obsolete?
1315 struct filedesc *fdp = p->p_fd;
1332 * in Beaker1C ; verify that the p->p_fd is valid
1653 struct filedesc *fdp = p->p_fd;
1666 * in Beaker1C ; verify that the p->p_fd is valid
1743 struct filedesc *fdp = p->p_fd;
1757 * in Beaker1C ; verify that the p->p_fd i
[all...]
H A Dkern_resource.c518 fdp = p->p_fd;
543 fdp = p->p_fd;
H A Dkern_event.c1057 struct filedesc *fdp = p->p_fd;
1105 struct filedesc *fdp = p->p_fd;
1525 struct filedesc *fdp = p->p_fd;
2505 struct filedesc *fdp = p->p_fd;
2596 struct filedesc *fdp = p->p_fd;
H A Dkern_exec.c898 (void *) p->p_fd->fd_rdir,
1522 mode = ((mode &~ p->p_fd->fd_cmask) & ALLPERMS) & ~S_ISTXT;
3308 if (p->p_fd->fd_ofiles[i] != NULL)
H A Dkern_fork.c1263 child_proc->p_fd = fdcopy(parent_proc, parent_uthread->uu_cdir);
H A Duipc_usrreq.c975 VATTR_SET(&va, va_mode, (ACCESSPERMS & ~p->p_fd->fd_cmask));
/darwin-on-arm/xnu/bsd/miscfs/devfs/
H A Ddevfs_fdesc_support.c306 int numfiles = p->p_fd->fd_nfiles;
576 if (i >= p->p_fd->fd_nfiles)
/darwin-on-arm/xnu/bsd/vm/
H A Dvm_unix.c995 fdp = targetproc->p_fd;
1273 root_vp = p->p_fd->fd_rdir;
1363 (void *) p->p_fd->fd_rdir,
1498 if (p->p_fd->fd_rdir != NULL) {
/darwin-on-arm/xnu/bsd/netinet/
H A Din_tclass.c285 fdp = p->p_fd;
368 fdp = p->p_fd;
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_cache.c220 if (vfs_context_proc(ctx)->p_fd)
221 proc_root_dir_vp = vfs_context_proc(ctx)->p_fd->fd_rdir;
H A Dvfs_syscalls.c1566 fdp = p->p_fd;
2640 struct filedesc *fdp = p->p_fd;
2764 struct filedesc *fdp = p->p_fd;
2863 struct filedesc *fdp = p->p_fd;
2968 struct filedesc *fdp = p->p_fd;
3181 struct filedesc *fdp = p->p_fd;
3229 struct filedesc *fdp = p->p_fd;
3277 struct filedesc *fdp = p->p_fd;
3309 VATTR_SET(&va, va_mode, (uap->mode & ALLPERMS) & ~p->p_fd->fd_cmask);
3482 VATTR_SET(&va, va_mode, (uap->mode & ALLPERMS) & ~p->p_fd
[all...]
H A Dkpi_vfs.c1317 if (proc != NULL && (proc->p_fd == NULL || (proc->p_lflag & P_LVFORK)))
1424 proc->p_fd != NULL)
1425 cwd = proc->p_fd->fd_cdir;
2194 if ( (vp = proc->p_fd->fd_rdir) ) {
H A Dvfs_lookup.c177 fdp = p->p_fd;
H A Dvfs_subr.c7122 VATTR_SET(vap, va_mode, ACCESSPERMS & ~vfs_context_proc(ctx)->p_fd->fd_cmask);
7123 KAUTH_DEBUG("ATTR - defaulting new file mode to %o from umask %o", vap->va_mode, vfs_context_proc(ctx)->p_fd->fd_cmask);
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_vfsops.c1220 fdp = procp->p_fd;

Completed in 227 milliseconds