FreeBSD/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_mount.c
/*
 * zfs_uninit_libshare(zhandle)
 *
 * Uninitialize the libshare API if it hasn't already been
 * uninitialized. It is OK to call multiple times.
 */
zfs_uninit_libshare(zhandle)
Uninitialize the libshare API if it hasn't already been
uninitialized. It is OK to call multiple times.
zfs_uninit_libshare ( zhandle ) Uninitialize the libshare API if it hasn ' t already been uninitialized . It is OK to call multiple times .
void
zfs_uninit_libshare(libzfs_handle_t *zhandle)
{
	if (zhandle != NULL && zhandle->libzfs_sharehdl != NULL) {
#ifdef illumos
		if (_sa_fini != NULL)
			_sa_fini(zhandle->libzfs_sharehdl);
#endif
		zhandle->libzfs_sharehdl = NULL;
	}
}
void zfs_uninit_libshare ( libzfs_handle_t * zhandle ) { if ( zhandle != NULL && zhandle -> libzfs_sharehdl != NULL ) { #ifdef illumos if ( _sa_fini != NULL ) _sa_fini ( zhandle -> libzfs_sharehdl ) ; #endif zhandle -> libzfs_sharehdl = NULL ; } }
zfs_uninit_libshare(zhandle)
 Uninitialize the libshare API if it hasn't already been
 uninitialized.
zfs_uninit_libshare ( zhandle ) Uninitialize the libshare API if it hasn ' t already been uninitialized .