Lines Matching refs:impl_handle

62  * sa_zfs_init(impl_handle)
70 sa_zfs_init(sa_handle_impl_t impl_handle)
72 impl_handle->zfs_libhandle = libzfs_init();
73 if (impl_handle->zfs_libhandle != NULL) {
74 libzfs_print_on_error(impl_handle->zfs_libhandle, B_TRUE);
81 * sa_zfs_fini(impl_handle)
88 sa_zfs_fini(sa_handle_impl_t impl_handle)
90 if (impl_handle->zfs_libhandle != NULL) {
91 if (impl_handle->zfs_list != NULL) {
92 zfs_handle_t **zhp = impl_handle->zfs_list;
99 for (i = 0; i < impl_handle->zfs_list_count; i++) {
102 free(impl_handle->zfs_list);
103 impl_handle->zfs_list = NULL;
104 impl_handle->zfs_list_count = 0;
107 libzfs_fini(impl_handle->zfs_libhandle);
108 impl_handle->zfs_libhandle = NULL;
187 get_all_filesystems(sa_handle_impl_t impl_handle,
193 if (impl_handle->zfs_list != NULL) {
194 *fslist = impl_handle->zfs_list;
195 *count = impl_handle->zfs_list_count;
199 (void) zfs_iter_root(impl_handle->zfs_libhandle,
202 impl_handle->zfs_list = *fslist = cb.cb_handles;
203 impl_handle->zfs_list_count = *count = cb.cb_used;
265 * get_zfs_dataset(impl_handle, path)
273 get_zfs_dataset(sa_handle_impl_t impl_handle, char *path,
282 get_all_filesystems(impl_handle, &zlist, &count);
935 sa_handle_impl_t impl_handle;
945 impl_handle = (sa_handle_impl_t)sa_find_group_handle(group);
946 assert(impl_handle != NULL);
947 if (impl_handle != NULL)
948 dataset = get_zfs_dataset(impl_handle, path, B_FALSE);
1046 sa_handle_impl_t impl_handle;
1062 impl_handle = (sa_handle_impl_t)sa_find_group_handle(group);
1063 assert(impl_handle != NULL);
1064 if (impl_handle != NULL)
1065 dataset = get_zfs_dataset(impl_handle, path, B_FALSE);
1129 sa_handle_impl_t impl_handle;
1131 impl_handle = sa_find_group_handle(
1133 if (impl_handle != NULL)
1135 impl_handle, path, B_FALSE);