Lines Matching refs:trans
121 find_ucred_opt(const SVCXPRT *trans, ucred_t *uc, bool_t checkzone) in find_ucred_opt() argument
124 struct netbuf *abuf = (struct netbuf *)trans->xp_p2; in find_ucred_opt()
130 if (getpeerucred(trans->xp_fd, &uc) == 0) in find_ucred_opt()
180 if (getpeerucred(trans->xp_fd, &uc) != 0) in find_ucred_opt()
197 __rpc_get_local_uid(SVCXPRT *trans, uid_t *uid_out) in __rpc_get_local_uid() argument
203 if (svc_type(trans) == SVC_DOOR) in __rpc_get_local_uid()
204 err = __svc_get_door_ucred(trans, uc) == FALSE; in __rpc_get_local_uid()
206 err = find_ucred_opt(trans, uc, B_TRUE); in __rpc_get_local_uid()
244 svc_getcallerucred(const SVCXPRT *trans, ucred_t **uc) in svc_getcallerucred() argument
256 if (svc_type(trans) == SVC_DOOR) in svc_getcallerucred()
257 err = __svc_get_door_ucred(trans, ucp) == FALSE; in svc_getcallerucred()
259 err = find_ucred_opt(trans, ucp, B_FALSE); in svc_getcallerucred()