Home
last modified time | relevance | path

Searched refs:tx_cpu (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dtxg.c126 tx->tx_cpu = vmem_zalloc(max_ncpus * sizeof (tx_cpu_t), KM_SLEEP); in txg_init()
131 mutex_init(&tx->tx_cpu[c].tc_lock, NULL, MUTEX_DEFAULT, NULL); in txg_init()
132 mutex_init(&tx->tx_cpu[c].tc_open_lock, NULL, MUTEX_NOLOCKDEP, in txg_init()
135 cv_init(&tx->tx_cpu[c].tc_cv[i], NULL, CV_DEFAULT, in txg_init()
137 list_create(&tx->tx_cpu[c].tc_callbacks[i], in txg_init()
176 mutex_destroy(&tx->tx_cpu[c].tc_open_lock); in txg_fini()
177 mutex_destroy(&tx->tx_cpu[c].tc_lock); in txg_fini()
179 cv_destroy(&tx->tx_cpu[c].tc_cv[i]); in txg_fini()
180 list_destroy(&tx->tx_cpu[c].tc_callbacks[i]); in txg_fini()
187 vmem_free(tx->tx_cpu, max_ncpu in txg_fini()
[all...]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dtxg_impl.h70 struct tx_cpu { struct
90 tx_cpu_t *tx_cpu; /* protects access to tx_open_txg */ member
H A Dtxg.h49 typedef struct tx_cpu tx_cpu_t;