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