Lines Matching refs:fileproc
117 int falloc_locked(proc_t p, struct fileproc **resultfp, int *resultfd, vfs_context_t ctx, int locked);
118 int fdgetf_noref(proc_t p, int fd, struct fileproc **resultfp);
119 void fg_drop(struct fileproc * fp);
121 void fg_ref(struct fileproc * fp);
125 static int close_internal_locked(struct proc *p, int fd, struct fileproc *fp, int flags);
127 static int closef_finish(struct fileproc *fp, struct fileglob *fg, proc_t p, vfs_context_t ctx);
140 extern int kqueue_stat(struct fileproc *fp, void *ub, int isstat4, proc_t p);
203 * Description: Lock to control access to the per process struct fileproc
291 procfdtbl_releasefd(struct proc * p, int fd, struct fileproc * fp)
379 struct fileproc *fp;
421 struct fileproc *fp, *nfp;
475 panic("dup2: unable to get ref on a fileproc %d\n", new);
586 struct fileproc *fp;
1646 struct fileproc *nfp;
1647 struct fileproc *ofp;
1674 MALLOC_ZONE(nfp, struct fileproc *, sizeof(struct fileproc), M_FILEPROC, M_WAITOK);
1685 bzero(nfp, sizeof(struct fileproc));
1733 struct fileproc *fp;
1762 * fp fileproc associated with the fd
1778 close_internal_locked(proc_t p, int fd, struct fileproc *fp, int flags)
1903 struct fileproc *fp;
2145 struct fileproc *fp;
2231 struct fileproc **newofiles, **ofiles;
2273 MALLOC_ZONE(newofiles, struct fileproc **,
2330 struct fileproc **fpp;
2368 * Description: Get the fileproc pointer for the given fd from the per process
2372 * fd fd to obtain fileproc for
2379 * *resultfp (modified) Pointer to fileproc pointer
2384 * fileproc pointer is only valid so long as the proc_fdlock
2388 fdgetf_noref(proc_t p, int fd, struct fileproc **resultfp)
2391 struct fileproc *fp;
2407 * Description: Get fileproc and vnode pointer for a given fd from the per
2413 * resultfp Pointer to result fileproc
2432 fp_getfvp(proc_t p, int fd, struct fileproc **resultfp, struct vnode **resultvp)
2435 struct fileproc *fp;
2463 * Description: Get fileproc, vnode pointer, and vid for a given fd from the
2469 * resultfp Pointer to result fileproc
2490 fp_getfvpandvid(proc_t p, int fd, struct fileproc **resultfp,
2494 struct fileproc *fp;
2524 * Description: Get fileproc and socket pointer for a given fd from the
2530 * resultfp Pointer to result fileproc
2547 fp_getfsock(proc_t p, int fd, struct fileproc **resultfp,
2551 struct fileproc *fp;
2579 * Description: Get fileproc and kqueue pointer for a given fd from the
2585 * resultfp Pointer to result fileproc
2602 fp_getfkq(proc_t p, int fd, struct fileproc **resultfp,
2606 struct fileproc *fp;
2634 * Description: Get fileproc and POSIX shared memory pointer for a given fd
2640 * resultfp Pointer to result fileproc
2659 fp_getfpshm(proc_t p, int fd, struct fileproc **resultfp,
2663 struct fileproc *fp;
2692 * Description: Get fileproc and POSIX semaphore pointer for a given fd from
2698 * resultfp Pointer to result fileproc
2726 fp_getfpsem(proc_t p, int fd, struct fileproc **resultfp,
2730 struct fileproc *fp;
2758 * Description: Get fileproc and pipe pointer for a given fd from the
2764 * resultfp Pointer to result fileproc
2781 fp_getfpipe(proc_t p, int fd, struct fileproc **resultfp,
2785 struct fileproc *fp;
2816 * Description: Get fileproc and atalk pointer for a given fd from the
2822 * resultfp Pointer to result fileproc
2841 fp_getfatalk(proc_t p, int fd, struct fileproc **resultfp,
2845 struct fileproc *fp;
2873 * Description: Get fileproc pointer for a given fd from the per process
2879 * resultfp Pointer to result fileproc
2895 fp_lookup(proc_t p, int fd, struct fileproc **resultfp, int locked)
2898 struct fileproc *fp;
2923 * Description: Set the FP_WRITTEN flag on the fileproc and drop the I/O
2927 * fd fd associated with the fileproc
2928 * fp fileproc on which to set the
2937 * Notes: The fileproc must correspond to the fd in the supplied proc
2940 fp_drop_written(proc_t p, int fd, struct fileproc *fp)
2959 * Description: Set the FP_WAITEVENT flag on the fileproc and drop the I/O
2963 * fd fd associated with the fileproc
2964 * fp fileproc on which to set the
2973 * Notes: The fileproc must correspond to the fd in the supplied proc
2976 fp_drop_event(proc_t p, int fd, struct fileproc *fp)
2999 * fd fd associated with the fileproc
3000 * fp fileproc on which to set the
3013 * Notes: The fileproc must correspond to the fd in the supplied proc
3016 fp_drop(proc_t p, int fd, struct fileproc *fp, int locked)
3057 * vnode fileproc entry
3067 * fd's corresponding fileproc.
3069 * The fileproc referenced is not returned; because of this, care
3073 * close that destroys the associate fileproc. The caller should
3074 * therefore retain their own reference on the fileproc so that
3085 struct fileproc *fp;
3125 * fd's corresponding fileproc.
3127 * The fileproc referenced is not returned; because of this, care
3131 * close that destroys the associate fileproc. The caller should
3132 * therefore retain their own reference on the fileproc so that
3143 struct fileproc *fp;
3167 * open file table, and return its fileproc's flags field.
3184 * f_iocount of the fileproc as part of its operation.
3191 struct fileproc *fp;
3221 * open file table, and drop it's fileproc's f_iocount by one
3236 * unless there was a cautionary reference taken on the fileproc,
3246 struct fileproc *fp;
3276 * return the corresponding fileproc and fd.
3280 * resultfp Pointer to fileproc pointer
3292 * *resultfd (modified) Returned fileproc pointer
3304 falloc(proc_t p, struct fileproc **resultfp, int *resultfd, vfs_context_t ctx)
3325 * return the corresponding fileproc and fd.
3329 * resultfp Pointer to fileproc pointer
3344 * *resultfd (modified) Returned fileproc pointer
3359 falloc_locked(proc_t p, struct fileproc **resultfp, int *resultfd,
3362 struct fileproc *fp, *fq;
3396 MALLOC_ZONE(fp, struct fileproc *, sizeof(struct fileproc), M_FILEPROC, M_WAITOK);
3409 bzero(fp, sizeof(struct fileproc));
3519 struct fileproc *fp;
3588 struct fileproc *ofp, *fp;
3687 MALLOC_ZONE(newfdp->fd_ofiles, struct fileproc **,
3705 struct fileproc **fpp;
3737 MALLOC_ZONE(fp, struct fileproc *, sizeof(struct fileproc), M_FILEPROC, M_WAITOK);
3745 bzero(fp, sizeof(struct fileproc));
3784 struct fileproc *fp;
3852 * Parameters: fp Pointer to fileproc for fd
3870 closef_finish(struct fileproc *fp, struct fileglob *fg, proc_t p, vfs_context_t ctx)
3882 if (((fp != (struct fileproc *)0) && ((fp->f_flags & FP_INCHRREAD) != 0))) {
3899 * Parameters: fp Pointer to fileproc for fd
3915 closef_locked(struct fileproc *fp, struct fileglob *fg, proc_t p)
3995 * fp fileproc struct for the open
4011 fileproc_drain(proc_t p, struct fileproc * fp)
4041 * Description: Release the fd and free the fileproc associated with the fd
4047 * fp fileproc to be freed
4055 fp_free(proc_t p, int fd, struct fileproc * fp)
4095 struct fileproc *fp;
4169 struct fileproc *wfp;
4170 struct fileproc *fp;
4246 * Description: Add a reference to a fileglob by fileproc
4248 * Parameters: fp fileproc containing fileglob
4256 fg_ref(struct fileproc * fp)
4279 * Description: Remove a reference to a fileglob by fileproc
4281 * Parameters: fp fileproc containing fileglob
4289 fg_drop(struct fileproc * fp)
4400 * in the fileproc structure
4402 * Parameters: fp fileproc structure pointer
4411 fo_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx)
4421 * in the fileproc structure
4423 * Parameters: fp fileproc structure pointer
4432 fo_write(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx)
4442 * in the fileproc structure
4444 * Parameters: fp fileproc structure pointer
4461 fo_ioctl(struct fileproc *fp, u_long com, caddr_t data, vfs_context_t ctx)
4476 * in the fileproc structure
4478 * Parameters: fp fileproc structure pointer
4487 fo_select(struct fileproc *fp, int which, void *wql, vfs_context_t ctx)
4497 * in the fileproc structure
4499 * Parameters: fp fileproc structure pointer for
4517 * pointer in the fileproc structure
4519 * Parameters: fp fileproc structure pointer
4527 fo_kqfilter(struct fileproc *fp, struct knote *kn, vfs_context_t ctx)