Esempio n. 1
0
void
dtsec_rm_pool_rx_free(struct dtsec_softc *sc)
{

	if (sc->sc_rx_pool != NULL)
		bman_pool_destroy(sc->sc_rx_pool);

	if (sc->sc_rx_zone != NULL)
		uma_zdestroy(sc->sc_rx_zone);
}
Esempio n. 2
0
//ScenSim-Port//#ifdef VIMAGE
void
tcp_tw_destroy(void)
{
    struct tcptw *tw;

//ScenSim-Port//    INP_INFO_WLOCK(&V_tcbinfo);
    while((tw = TAILQ_FIRST(&V_twq_2msl)) != NULL)
        tcp_twclose(tw, 0);
//ScenSim-Port//    INP_INFO_WUNLOCK(&V_tcbinfo);

    uma_zdestroy(V_tcptw_zone);
}
Esempio n. 3
0
static int
udf_uninit(struct vfsconf *foo)
{

	if (udf_zone_trans != NULL) {
		uma_zdestroy(udf_zone_trans);
		udf_zone_trans = NULL;
	}

	if (udf_zone_node != NULL) {
		uma_zdestroy(udf_zone_node);
		udf_zone_node = NULL;
	}

	if (udf_zone_ds != NULL) {
		uma_zdestroy(udf_zone_ds);
		udf_zone_ds = NULL;
	}

	return (0);
}
Esempio n. 4
0
int
pefs_uninit(struct vfsconf *vfsp)
{
	taskqueue_enqueue(pefs_taskq, &pefs_task_freenode);
	taskqueue_drain(pefs_taskq, &pefs_task_freenode);
	taskqueue_free(pefs_taskq);
	pefs_dircache_uninit();
	pefs_crypto_uninit();
	mtx_destroy(&pefs_node_listmtx);
	free(pefs_nodehash_tbl, M_PEFSHASH);
	uma_zdestroy(pefs_node_zone);
	return (0);
}
Esempio n. 5
0
void 
busdma_bufalloc_destroy(busdma_bufalloc_t ba)
{
	struct busdma_bufzone *bz;
	int i;

	if (ba == NULL)
		return;

	for (i = 0, bz = ba->buf_zones; i < ba->num_zones; ++i, ++bz) {
		uma_zdestroy(bz->umazone);
	}

	free(ba, M_DEVBUF);
}
Esempio n. 6
0
/*
 * Halt sigpvc processing 
 * 
 * This should be called just prior to unloading the module from
 * memory.  All sigpvc interfaces must be deregistered before the
 * protocol can be shutdown.
 *
 * Arguments:
 *	none
 *
 * Returns:
 *	0 	shutdown was successful 
 *	errno	shutdown failed - reason indicated
 *
 */
static int
sigpvc_stop()
{
	int	err = 0;
	int	s = splnet();

	/*
	 * Is protocol even setup?
	 */
	if (sigpvc_registered) {
		
		/*
		 * Any protocol instances still registered??
		 */
		if (sigpvc_mgr.sm_prinst) {

			/* Yes, can't stop now */
			err = EBUSY;
			goto done;
		}

		/*
		 * De-register from system
		 */
		err = atm_sigmgr_deregister(&sigpvc_mgr);
		sigpvc_registered = 0;

		/*
		 * Free up our vccb storage pool
		 */
		uma_zdestroy(sigpvc_vc_zone);
	} else
		err = ENXIO;

done:
	(void) splx(s);
	return (err);
}
Esempio n. 7
0
static void
ata_uninit(void)
{
    uma_zdestroy(ata_request_zone);
}
Esempio n. 8
0
void
ncl_nhuninit(void)
{
	uma_zdestroy(newnfsnode_zone);
}
Esempio n. 9
0
void
nfs_nhuninit(void)
{
	uma_zdestroy(nfsnode_zone);
}
Esempio n. 10
0
static void
nvme_uninit(void)
{
	uma_zdestroy(nvme_request_zone);
}
Esempio n. 11
0
void
fuse_ipc_destroy(void)
{
	uma_zdestroy(ticket_zone);
}