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.c128 tx->tx_cpu = vmem_zalloc(max_ncpus * sizeof (tx_cpu_t), KM_SLEEP); in txg_init()
133 mutex_init(&tx->tx_cpu[c].tc_lock, NULL, MUTEX_DEFAULT, NULL); in txg_init()
134 mutex_init(&tx->tx_cpu[c].tc_open_lock, NULL, MUTEX_NOLOCKDEP, in txg_init()
137 cv_init(&tx->tx_cpu[c].tc_cv[i], NULL, CV_DEFAULT, in txg_init()
139 list_create(&tx->tx_cpu[c].tc_callbacks[i], in txg_init()
178 mutex_destroy(&tx->tx_cpu[c].tc_open_lock); in txg_fini()
179 mutex_destroy(&tx->tx_cpu[c].tc_lock); in txg_fini()
181 cv_destroy(&tx->tx_cpu[c].tc_cv[i]); in txg_fini()
182 list_destroy(&tx->tx_cpu[c].tc_callbacks[i]); in txg_fini()
189 vmem_free(tx->tx_cpu, max_ncpus * sizeof (tx_cpu_t)); in txg_fini()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dtxg_impl.h71 struct tx_cpu { struct
91 tx_cpu_t *tx_cpu; /* protects access to tx_open_txg */ member
H A Dtxg.h51 typedef struct tx_cpu tx_cpu_t;