| 589 | } |
| 590 | |
| 591 | static void |
| 592 | div_detach(struct socket *so) |
| 593 | { |
| 594 | struct inpcb *inp; |
| 595 | |
| 596 | inp = sotoinpcb(so); |
| 597 | KASSERT(inp != NULL, ("div_detach: inp == NULL")); |
| 598 | INP_INFO_WLOCK(&V_divcbinfo); |
| 599 | INP_WLOCK(inp); |
| 600 | in_pcbdetach(inp); |
| 601 | in_pcbfree(inp); |
| 602 | INP_INFO_WUNLOCK(&V_divcbinfo); |
| 603 | } |
| 604 | |
| 605 | static int |
| 606 | div_bind(struct socket *so, struct sockaddr *nam, struct thread *td) |
nothing calls this directly
no test coverage detected