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

Function unp_pcb_hold

freebsd/kern/uipc_usrreq.c:314–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312static void unp_process_defers(void * __unused, int);
313
314static void
315unp_pcb_hold(struct unpcb *unp)
316{
317 u_int old __unused;
318
319 old = refcount_acquire(&unp->unp_refcount);
320 KASSERT(old > 0, ("%s: unpcb %p has no references", __func__, unp));
321}
322
323static __result_use_check bool
324unp_pcb_rele(struct unpcb *unp)

Callers 5

unp_pcb_lock_peerFunction · 0.85
uipc_abortFunction · 0.85
uipc_detachFunction · 0.85
unp_connect2Function · 0.85
unp_pcblistFunction · 0.85

Calls 1

refcount_acquireFunction · 0.85

Tested by

no test coverage detected