FreeBSD/sys/dev/netmap/netmap_pipe.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
void
netmap_pipe_dealloc(struct netmap_adapter *na)
{
	if (na->na_pipes) {
		if (na->na_next_pipe > 0) {
			D("freeing not empty pipe array for %s (%d dangling pipes)!", na->name,
					na->na_next_pipe);
		}
		free(na->na_pipes, M_DEVBUF);
		na->na_pipes = NULL;
		na->na_max_pipes = 0;
		na->na_next_pipe = 0;
	}
}
void netmap_pipe_dealloc ( struct netmap_adapter * na ) { if ( na -> na_pipes ) { if ( na -> na_next_pipe > 0 ) { D ( " " , na -> name , na -> na_next_pipe ) ; } free ( na -> na_pipes , M_DEVBUF ) ; na -> na_pipes = NULL ; na -> na_max_pipes = 0 ; na -> na_next_pipe = 0 ; } }
deallocate the parent array in the parent adapter
deallocate the parent array in the parent adapter