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

Function nga_rcvdata

freebsd/netgraph/ng_async.c:239–249  ·  view source on GitHub ↗

* Receive incoming data */

Source from the content-addressed store, hash-verified

237 * Receive incoming data
238 */
239static int
240nga_rcvdata(hook_p hook, item_p item)
241{
242 const sc_p sc = NG_NODE_PRIVATE(NG_HOOK_NODE(hook));
243
244 if (hook == sc->sync)
245 return (nga_rcv_sync(sc, item));
246 if (hook == sc->async)
247 return (nga_rcv_async(sc, item));
248 panic("%s", __func__);
249}
250
251/*
252 * Receive incoming control message

Callers

nothing calls this directly

Calls 3

nga_rcv_syncFunction · 0.85
nga_rcv_asyncFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected