Lines Matching defs:so
67 raw_attach(struct socket *so, int proto, struct rawcbhead *rawcbhead)
78 rp = sotorawcb(so);
80 sosetlock(so);
82 if ((error = soreserve(so, raw_sendspace, raw_recvspace)) != 0) {
85 rp->rcb_socket = so;
86 rp->rcb_proto.sp_family = so->so_proto->pr_domain->dom_family;
89 KASSERT(solocked(so));
98 raw_detach(struct socket *so)
100 struct rawcb *rp = sotorawcb(so);
104 KASSERT(solocked(so));
108 so->so_pcb = NULL;
111 sofree(so);
113 if (so->so_lock != softnet_lock) {
114 so->so_lock = softnet_lock;
126 struct socket *so = rp->rcb_socket;
128 if (so->so_state & SS_NOFDREF) {
129 raw_detach(so);