Searched refs:zch (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zcp_synctask.c | 276 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_snapshot() local 282 zcp_deregister_cleanup(state, zch); in zcp_synctask_snapshot() 354 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_inherit_prop() local 360 zcp_deregister_cleanup(state, zch); in zcp_synctask_inherit_prop() 459 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_change_key() local 465 zcp_deregister_cleanup(state, zch); in zcp_synctask_change_key() 476 zcp_cleanup_handler_t *zch; in zcp_synctask_wrapper() local 484 zch = zcp_register_cleanup(state, in zcp_synctask_wrapper() 524 zcp_deregister_cleanup(state, zch); in zcp_synctask_wrapper()
|
H A D | zcp.c | 170 zcp_cleanup_handler_t *zch = kmem_alloc(sizeof (*zch), KM_SLEEP); in zcp_register_cleanup() local 171 zch->zch_cleanup_func = cleanfunc; in zcp_register_cleanup() 172 zch->zch_cleanup_arg = cleanarg; in zcp_register_cleanup() 173 list_insert_head(&ri->zri_cleanup_handlers, zch); in zcp_register_cleanup() 175 return (zch); in zcp_register_cleanup() 179 zcp_deregister_cleanup(lua_State *state, zcp_cleanup_handler_t *zch) in zcp_deregister_cleanup() argument 182 list_remove(&ri->zri_cleanup_handlers, zch); in zcp_deregister_cleanup() 183 kmem_free(zch, sizeof (*zch)); in zcp_deregister_cleanup() 195 for (zcp_cleanup_handler_t *zch = in zcp_cleanup() local 196 list_remove_head(&ri->zri_cleanup_handlers); zch != NULL; in zcp_cleanup() [all …]
|