Searched refs:zch (Results 1 – 2 of 2) sorted by relevance
192 zcp_cleanup_handler_t *zch = kmem_alloc(sizeof (*zch), KM_SLEEP); in zcp_register_cleanup() local193 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() local219 zch = list_remove_head(&ri->zri_cleanup_handlers)) { in zcp_cleanup()220 zch->zch_cleanup_func(zch->zch_cleanup_arg); in zcp_cleanup()[all …]
266 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_snapshot() local272 zcp_deregister_cleanup(state, zch); in zcp_synctask_snapshot()282 zcp_cleanup_handler_t *zch; in zcp_synctask_wrapper() local290 zch = zcp_register_cleanup(state, in zcp_synctask_wrapper()330 zcp_deregister_cleanup(state, zch); in zcp_synctask_wrapper()