Searched refs:zch (Results 1 – 2 of 2) sorted by relevance
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | zcp_synctask.c | 206 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_destroy() local 215 zcp_deregister_cleanup(state, zch); in zcp_synctask_destroy() 341 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_snapshot() local 357 zcp_deregister_cleanup(state, zch); in zcp_synctask_snapshot() 466 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_inherit_prop() local 472 zcp_deregister_cleanup(state, zch); in zcp_synctask_inherit_prop() 505 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_bookmark() local 515 zcp_deregister_cleanup(state, zch); in zcp_synctask_bookmark() 564 zcp_cleanup_handler_t *zch; in zcp_synctask_wrapper() local 572 zch = zcp_register_cleanup(state, zcp_synctask_cleanup, err_details); in zcp_synctask_wrapper() [all …]
|
| H A D | zcp.c | 171 zcp_cleanup_handler_t *zch = kmem_alloc(sizeof (*zch), KM_SLEEP); in zcp_register_cleanup() local 172 zch->zch_cleanup_func = cleanfunc; in zcp_register_cleanup() 173 zch->zch_cleanup_arg = cleanarg; in zcp_register_cleanup() 174 list_insert_head(&ri->zri_cleanup_handlers, zch); in zcp_register_cleanup() 176 return (zch); in zcp_register_cleanup() 180 zcp_deregister_cleanup(lua_State *state, zcp_cleanup_handler_t *zch) in zcp_deregister_cleanup() argument 183 list_remove(&ri->zri_cleanup_handlers, zch); in zcp_deregister_cleanup() 184 kmem_free(zch, sizeof (*zch)); in zcp_deregister_cleanup() 196 for (zcp_cleanup_handler_t *zch = in zcp_cleanup() local 197 list_remove_head(&ri->zri_cleanup_handlers); zch != NULL; in zcp_cleanup() [all …]
|