Lines Matching refs:srf
5300 struct k_strrecvfd *srf; in strioctl() local
5326 srf = (struct k_strrecvfd *)mp->b_rptr; in strioctl()
5338 if (srf->uid > (o_uid_t)USHRT_MAX || in strioctl()
5339 srf->gid > (o_gid_t)USHRT_MAX) { in strioctl()
5348 ostrfd.uid = (o_uid_t)srf->uid; in strioctl()
5349 ostrfd.gid = (o_gid_t)srf->gid; in strioctl()
5361 strfd.uid = srf->uid; in strioctl()
5362 strfd.gid = srf->gid; in strioctl()
5380 audit_fdrecv(fd, srf->fp); in strioctl()
5387 mutex_enter(&srf->fp->f_tlock); in strioctl()
5388 srf->fp->f_count++; in strioctl()
5389 mutex_exit(&srf->fp->f_tlock); in strioctl()
5390 setf(fd, srf->fp); in strioctl()
5692 free_passfp(struct k_strrecvfd *srf) in free_passfp() argument
5694 (void) closef(srf->fp); in free_passfp()
5695 kmem_free(srf, sizeof (struct k_strrecvfd) + sizeof (frtn_t)); in free_passfp()
5703 struct k_strrecvfd *srf; in do_sendfp() local
5813 srf = kmem_alloc(bufsize, KM_NOSLEEP); in do_sendfp()
5814 if (srf == NULL) { in do_sendfp()
5819 frtnp = (frtn_t *)(srf + 1); in do_sendfp()
5820 frtnp->free_arg = (caddr_t)srf; in do_sendfp()
5823 mp = esballoc((uchar_t *)srf, bufsize, BPRI_MED, frtnp); in do_sendfp()
5825 kmem_free(srf, bufsize); in do_sendfp()
5832 srf->fp = fp; in do_sendfp()
5833 srf->uid = crgetuid(curthread->t_cred); in do_sendfp()
5834 srf->gid = crgetgid(curthread->t_cred); in do_sendfp()