Lines Matching refs:prp
507 struct protosw *prp; in socreate() local
512 prp = pffindproto(dom, proto, type); in socreate()
514 prp = pffindtype(dom, type); in socreate()
516 if (prp == NULL) { in socreate()
525 if (prp->pr_usrreqs->pru_attach == NULL || in socreate()
526 prp->pr_usrreqs->pru_attach == pru_attach_notsupp) in socreate()
529 if (prison_check_af(cred, prp->pr_domain->dom_family) != 0) in socreate()
532 if (prp->pr_type != type) in socreate()
540 if ((prp->pr_domain->dom_family == PF_INET) || in socreate()
541 (prp->pr_domain->dom_family == PF_INET6) || in socreate()
542 (prp->pr_domain->dom_family == PF_ROUTE)) in socreate()
546 so->so_proto = prp; in socreate()
559 error = (*prp->pr_usrreqs->pru_attach)(so, proto, td); in socreate()