FreeBSD/sys/dev/netmap/netmap_monitor.c
/* deallocate the parent array in the parent adapter */
deallocate the parent array in the parent adapter
deallocate the parent array in the parent adapter
static void
nm_monitor_dealloc(struct netmap_kring *kring)
{
	if (kring->monitors) {
		if (kring->n_monitors > 0) {
			D("freeing not empty monitor array for %s (%d dangling monitors)!", kring->name,
					kring->n_monitors);
		}
		free(kring->monitors, M_DEVBUF);
		kring->monitors = NULL;
		kring->max_monitors = 0;
		kring->n_monitors = 0;
	}
}
static void nm_monitor_dealloc ( struct netmap_kring * kring ) { if ( kring -> monitors ) { if ( kring -> n_monitors > 0 ) { D ( " " , kring -> name , kring -> n_monitors ) ; } free ( kring -> monitors , M_DEVBUF ) ; kring -> monitors = NULL ; kring -> max_monitors = 0 ; kring -> n_monitors = 0 ; } }
deallocate the parent array in the parent adapter
deallocate the parent array in the parent adapter