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

Function get_iffam_from_hook

freebsd/netgraph/ng_iface.c:235–244  ·  view source on GitHub ↗

* Get the family descriptor from the hook */

Source from the content-addressed store, hash-verified

233 * Get the family descriptor from the hook
234 */
235static __inline iffam_p
236get_iffam_from_hook(priv_p priv, hook_p hook)
237{
238 int k;
239
240 for (k = 0; k < NUM_FAMILIES; k++)
241 if (priv->hooks[k] == hook)
242 return (&gFamilies[k]);
243 return (NULL);
244}
245
246/*
247 * Get the hook from the iffam descriptor

Callers 2

ng_iface_rcvdataFunction · 0.70
ng_iface_disconnectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected