Searched refs:zch (Results 1 – 2 of 2) sorted by relevance
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | zcp.c | 175 zcp_cleanup_handler_t *zch = kmem_alloc(sizeof (*zch), KM_SLEEP); in zcp_register_cleanup() local 176 zch->zch_cleanup_func = cleanfunc; in zcp_register_cleanup() 177 zch->zch_cleanup_arg = cleanarg; in zcp_register_cleanup() 178 list_insert_head(&ri->zri_cleanup_handlers, zch); in zcp_register_cleanup() 180 return (zch); in zcp_register_cleanup() 184 zcp_deregister_cleanup(lua_State *state, zcp_cleanup_handler_t *zch) in zcp_deregister_cleanup() argument 187 list_remove(&ri->zri_cleanup_handlers, zch); in zcp_deregister_cleanup() 188 kmem_free(zch, sizeof (*zch)); in zcp_deregister_cleanup() 200 for (zcp_cleanup_handler_t *zch = in zcp_cleanup() local 201 list_remove_head(&ri->zri_cleanup_handlers); zch != NULL; in zcp_cleanup() [all …]
|
| H A D | zcp_synctask.c | 325 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_snapshot() local 341 zcp_deregister_cleanup(state, zch); in zcp_synctask_snapshot() 450 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_inherit_prop() local 456 zcp_deregister_cleanup(state, zch); in zcp_synctask_inherit_prop() 489 zcp_cleanup_handler_t *zch = zcp_register_cleanup(state, in zcp_synctask_bookmark() local 499 zcp_deregister_cleanup(state, zch); in zcp_synctask_bookmark() 548 zcp_cleanup_handler_t *zch; in zcp_synctask_wrapper() local 556 zch = zcp_register_cleanup(state, zcp_synctask_cleanup, err_details); in zcp_synctask_wrapper() 596 zcp_deregister_cleanup(state, zch); in zcp_synctask_wrapper()
|