| 865 | } |
| 866 | |
| 867 | static int |
| 868 | uipc_disconnect(struct socket *so) |
| 869 | { |
| 870 | struct unpcb *unp, *unp2; |
| 871 | |
| 872 | unp = sotounpcb(so); |
| 873 | KASSERT(unp != NULL, ("uipc_disconnect: unp == NULL")); |
| 874 | |
| 875 | UNP_PCB_LOCK(unp); |
| 876 | if ((unp2 = unp_pcb_lock_peer(unp)) != NULL) |
| 877 | unp_disconnect(unp, unp2); |
| 878 | else |
| 879 | UNP_PCB_UNLOCK(unp); |
| 880 | return (0); |
| 881 | } |
| 882 | |
| 883 | static int |
| 884 | uipc_listen(struct socket *so, int backlog, struct thread *td) |
nothing calls this directly
no test coverage detected