Lines Matching refs:srf
5426 struct k_strrecvfd *srf; in strioctl() local
5452 srf = (struct k_strrecvfd *)mp->b_rptr; in strioctl()
5464 if (srf->uid > (o_uid_t)USHRT_MAX || in strioctl()
5465 srf->gid > (o_gid_t)USHRT_MAX) { in strioctl()
5474 ostrfd.uid = (o_uid_t)srf->uid; in strioctl()
5475 ostrfd.gid = (o_gid_t)srf->gid; in strioctl()
5487 strfd.uid = srf->uid; in strioctl()
5488 strfd.gid = srf->gid; in strioctl()
5506 audit_fdrecv(fd, srf->fp); in strioctl()
5513 mutex_enter(&srf->fp->f_tlock); in strioctl()
5514 srf->fp->f_count++; in strioctl()
5515 mutex_exit(&srf->fp->f_tlock); in strioctl()
5516 setf(fd, srf->fp); in strioctl()
5818 free_passfp(struct k_strrecvfd *srf) in free_passfp() argument
5820 (void) closef(srf->fp); in free_passfp()
5821 kmem_free(srf, sizeof (struct k_strrecvfd) + sizeof (frtn_t)); in free_passfp()
5829 struct k_strrecvfd *srf; in do_sendfp() local
5939 srf = kmem_alloc(bufsize, KM_NOSLEEP); in do_sendfp()
5940 if (srf == NULL) { in do_sendfp()
5945 frtnp = (frtn_t *)(srf + 1); in do_sendfp()
5946 frtnp->free_arg = (caddr_t)srf; in do_sendfp()
5949 mp = esballoc((uchar_t *)srf, bufsize, BPRI_MED, frtnp); in do_sendfp()
5951 kmem_free(srf, bufsize); in do_sendfp()
5958 srf->fp = fp; in do_sendfp()
5959 srf->uid = crgetuid(curthread->t_cred); in do_sendfp()
5960 srf->gid = crgetgid(curthread->t_cred); in do_sendfp()