Lines Matching refs:fp

170 static int psem_read (struct fileproc *fp, struct uio *uio,
172 static int psem_write (struct fileproc *fp, struct uio *uio,
174 static int psem_ioctl (struct fileproc *fp, u_long com,
176 static int psem_select (struct fileproc *fp, int which, void *wql, vfs_context_t ctx);
177 static int psem_closefile (struct fileglob *fp, vfs_context_t ctx);
179 static int psem_kqfilter (struct fileproc *fp, struct knote *kn, vfs_context_t ctx);
365 struct fileproc *fp = NULL;
432 * attempt to allocate a new fp; if unsuccessful, the fp will be
435 error = falloc(p, &fp, &indx, vfs_context_current());
604 fp->f_flag = fmode & FMASK;
605 fp->f_ops = &psemops;
606 fp->f_data = (caddr_t)new_pnode;
608 fp_drop(p, indx, fp, 1);
624 if (fp != NULL)
625 fp_free(p, indx, fp);
784 struct fileproc *fp;
790 error = fp_lookup(p,fd, &fp, 1);
796 fileproc_drain(p, fp);
798 error = closef_locked(fp, fp->f_fglob, p);
799 fileproc_free(fp);
815 struct fileproc *fp;
821 error = fp_getfpsem(p, fd, &fp, &pnode);
824 if (((pnode = (struct psemnode *)fp->f_data)) == PSEMNODE_NULL ) {
866 fp_drop(p, fd, fp, 0);
875 struct fileproc *fp;
882 error = fp_getfpsem(p, fd, &fp, &pnode);
885 if (((pnode = (struct psemnode *)fp->f_data)) == PSEMNODE_NULL ) {
932 fp_drop(p, fd, fp, 0);
940 struct fileproc *fp;
946 error = fp_getfpsem(p, fd, &fp, &pnode);
949 if (((pnode = (struct psemnode *)fp->f_data)) == PSEMNODE_NULL ) {
991 fp_drop(p, fd, fp, 0);
1088 psem_read(__unused struct fileproc *fp, __unused struct uio *uio,
1095 psem_write(__unused struct fileproc *fp, __unused struct uio *uio,
1102 psem_ioctl(__unused struct fileproc *fp, __unused u_long com,
1109 psem_select(__unused struct fileproc *fp, __unused int which,
1116 psem_kqfilter(__unused struct fileproc *fp, __unused struct knote *kn,
1156 psem_label_associate(struct fileproc *fp, struct vnode *vp, vfs_context_t ctx)
1162 pnode = (struct psemnode *)fp->f_fglob->fg_data;