MCPcopy Create free account
hub / github.com/F-Stack/f-stack / uipc_abort

Function uipc_abort

freebsd/kern/uipc_usrreq.c:469–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467DOMAIN_SET(local);
468
469static void
470uipc_abort(struct socket *so)
471{
472 struct unpcb *unp, *unp2;
473
474 unp = sotounpcb(so);
475 KASSERT(unp != NULL, ("uipc_abort: unp == NULL"));
476 UNP_PCB_UNLOCK_ASSERT(unp);
477
478 UNP_PCB_LOCK(unp);
479 unp2 = unp->unp_conn;
480 if (unp2 != NULL) {
481 unp_pcb_hold(unp2);
482 UNP_PCB_UNLOCK(unp);
483 unp_drop(unp2);
484 } else
485 UNP_PCB_UNLOCK(unp);
486}
487
488static int
489uipc_accept(struct socket *so, struct sockaddr **nam)

Callers

nothing calls this directly

Calls 2

unp_pcb_holdFunction · 0.85
unp_dropFunction · 0.85

Tested by

no test coverage detected