FreeBSD/sys/netgraph/atm/ng_atm.c
/*
 * Use send_fn to get the right lock
 */
Use send_fn to get the right lock
Use send_fn to get the right lock
static void
ng_atm_event(struct ifnet *ifp, uint32_t event, void *arg)
{
	const node_p node = IFP2NG(ifp);
	if (node != NULL)
		(void)ng_send_fn(node, NULL, ng_atm_event_func, arg, event);
}
static void ng_atm_event ( struct ifnet * ifp , uint32_t event , void * arg ) { const node_p node = IFP2NG ( ifp ) ; if ( node != NULL ) ( void ) ng_send_fn ( node , NULL , ng_atm_event_func , arg , event ) ; }
Use send_fn to get the right lock
Use send_fn to get the right lock
/* may happen during attach/detach */