Home
last modified time | relevance | path

Searched refs:zch (Results 1 – 2 of 2) sorted by relevance

/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzcp.c192 zcp_cleanup_handler_t *zch = kmem_alloc(sizeof (*zch), KM_SLEEP); in zcp_register_cleanup() local
193 zch->zch_cleanup_func = cleanfunc; in zcp_register_cleanup()
194 zch->zch_cleanup_arg = cleanarg; in zcp_register_cleanup()
195 list_insert_head(&ri->zri_cleanup_handlers, zch); in zcp_register_cleanup()
197 return (zch); in zcp_register_cleanup()
204 list_remove(&ri->zri_cleanup_handlers, zch); in zcp_deregister_cleanup()
205 kmem_free(zch, sizeof (*zch)); in zcp_deregister_cleanup()
217 for (zcp_cleanup_handler_t *zch = in zcp_cleanup() local
219 zch = list_remove_head(&ri->zri_cleanup_handlers)) { in zcp_cleanup()
220 zch->zch_cleanup_func(zch->zch_cleanup_arg); in zcp_cleanup()
[all …]
H A Dzcp_synctask.c266 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_snapshot() local
272 zcp_deregister_cleanup(state, zch); in zcp_synctask_snapshot()
282 zcp_cleanup_handler_t *zch; in zcp_synctask_wrapper() local
290 zch = zcp_register_cleanup(state, in zcp_synctask_wrapper()
330 zcp_deregister_cleanup(state, zch); in zcp_synctask_wrapper()