Lines Matching refs:f_fglob
149 #define f_flag f_fglob->fg_flag
150 #define f_type f_fglob->fg_type
151 #define f_msgcount f_fglob->fg_msgcount
152 #define f_cred f_fglob->fg_cred
153 #define f_ops f_fglob->fg_ops
154 #define f_offset f_fglob->fg_offset
155 #define f_data f_fglob->fg_data
631 error = mac_file_check_fcntl(proc_ucred(p), fp->f_fglob, uap->cmd,
753 error = mac_file_check_lock(proc_ucred(p), fp->f_fglob,
855 error = mac_file_check_lock(proc_ucred(p), fp->f_fglob,
972 fp->f_fglob->fg_cred, vp);
1002 fp->f_fglob->fg_flag &= ~FNORDAHEAD;
1004 fp->f_fglob->fg_flag |= FNORDAHEAD;
1014 fp->f_fglob->fg_flag |= FNOCACHE;
1016 fp->f_fglob->fg_flag &= ~FNOCACHE;
1664 error = mac_file_check_dup(proc_ucred(p), ofp->f_fglob, new);
1688 nfp->f_fglob = ofp->f_fglob;
1818 kauth_authorize_fileop(fp->f_fglob->fg_cred, KAUTH_FILEOP_CLOSE,
1844 error = closef_locked(fp, fp->f_fglob, p);
3415 fp->f_fglob = fg;
3435 LIST_INSERT_AFTER(fq->f_fglob, fg, f_list);
3528 || (fp && mac_file_check_inherit(proc_ucred(p), fp->f_fglob))
3538 closef_locked(fp, fp->f_fglob, p);
3749 fp->f_fglob = ofp->f_fglob;
3817 (void) closef_locked(fp, fp->f_fglob, p);
4016 context.vc_ucred = fp->f_fglob->fg_cred;
4024 if (fp->f_fglob->fg_ops->fo_drain) {
4025 (*fp->f_fglob->fg_ops->fo_drain)(fp, &context);
4061 fg_free(fp->f_fglob);
4116 error = VNOP_ADVLOCK(vp, (caddr_t)fp->f_fglob, F_UNLCK, &lf, F_FLOCK, ctx);
4128 error = mac_file_check_lock(proc_ucred(p), fp->f_fglob, F_SETLK, &lf);
4134 error = VNOP_ADVLOCK(vp, (caddr_t)fp->f_fglob, F_SETLK, &lf, F_FLOCK, ctx);
4137 error = VNOP_ADVLOCK(vp, (caddr_t)fp->f_fglob, F_SETLK, &lf, F_FLOCK|F_WAIT, ctx);
4194 myerror = mac_file_check_dup(proc_ucred(p), wfp->f_fglob, dfd);
4226 if (fp->f_fglob)
4227 fg_free(fp->f_fglob);
4228 fp->f_fglob = wfp->f_fglob;
4260 fg = fp->f_fglob;
4293 fg = fp->f_fglob;