Lines Matching refs:fp
63 file_t *fp;
70 if ((fp = getf(fdes)) == NULL)
72 vp = fp->f_vnode;
92 error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL);
97 offset = MIN(vattr.va_size - fp->f_offset, INT_MAX);
111 mutex_enter(&fp->f_tlock);
113 fp->f_flag |= FNDELAY;
115 fp->f_flag &= ~FNDELAY;
116 mutex_exit(&fp->f_tlock);
128 flag = fp->f_flag | get_udatamodel();
129 error = VOP_IOCTL(fp->f_vnode, cmd, arg, flag, CRED(), &rv, NULL);
140 mutex_enter(&fp->f_tlock);
142 fp->f_flag |= FNDELAY;
144 fp->f_flag &= ~FNDELAY;
145 mutex_exit(&fp->f_tlock);