FreeBSD/sys/dev/netmap/netmap_monitor.c
/* callback used to replace the nm_notify() callback in the monitored rx rings */
callback used to replace the nm_notify() callback in the monitored rx rings
callback used to replace the nm_notify () callback in the monitored rx rings
static int
netmap_monitor_parent_notify(struct netmap_kring *kring, int flags)
{
	ND(5, "%s %x", kring->name, flags);
	if (nm_kr_tryget(kring))
		goto out;
	netmap_monitor_parent_rxsync(kring, NAF_FORCE_READ);
	nm_kr_put(kring);
out:
        return kring->mon_notify(kring, flags);
}
static int netmap_monitor_parent_notify ( struct netmap_kring * kring , int flags ) { ND ( 5 , " " , kring -> name , flags ) ; if ( nm_kr_tryget ( kring ) ) goto out ; netmap_monitor_parent_rxsync ( kring , NAF_FORCE_READ ) ; nm_kr_put ( kring ) ; out : return kring -> mon_notify ( kring , flags ) ; }
callback used to replace the nm_notify() callback in the monitored rx rings
callback used to replace the nm_notify () callback in the monitored rx rings
/* ?xsync callbacks have tryget called by their callers
	 * (NIOCREGIF and poll()), but here we have to call it
	 * by ourself
	 */