| 763 | } |
| 764 | |
| 765 | static int |
| 766 | uipc_connect2(struct socket *so1, struct socket *so2) |
| 767 | { |
| 768 | struct unpcb *unp, *unp2; |
| 769 | int error; |
| 770 | |
| 771 | unp = so1->so_pcb; |
| 772 | KASSERT(unp != NULL, ("uipc_connect2: unp == NULL")); |
| 773 | unp2 = so2->so_pcb; |
| 774 | KASSERT(unp2 != NULL, ("uipc_connect2: unp2 == NULL")); |
| 775 | unp_pcb_lock_pair(unp, unp2); |
| 776 | error = unp_connect2(so1, so2, PRU_CONNECT2); |
| 777 | unp_pcb_unlock_pair(unp, unp2); |
| 778 | return (error); |
| 779 | } |
| 780 | |
| 781 | static void |
| 782 | uipc_detach(struct socket *so) |
nothing calls this directly
no test coverage detected