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

Function unp_pcb_rele

freebsd/kern/uipc_usrreq.c:323–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323static __result_use_check bool
324unp_pcb_rele(struct unpcb *unp)
325{
326 bool ret;
327
328 UNP_PCB_LOCK_ASSERT(unp);
329
330 if ((ret = refcount_release(&unp->unp_refcount))) {
331 UNP_PCB_UNLOCK(unp);
332 UNP_PCB_LOCK_DESTROY(unp);
333 uma_zfree(unp_zone, unp);
334 }
335 return (ret);
336}
337
338static void
339unp_pcb_rele_notlast(struct unpcb *unp)

Callers 5

unp_pcb_lock_peerFunction · 0.85
uipc_detachFunction · 0.85
unp_disconnectFunction · 0.85
unp_pcblistFunction · 0.85
unp_dropFunction · 0.85

Calls 2

refcount_releaseFunction · 0.85
uma_zfreeFunction · 0.50

Tested by

no test coverage detected