FreeBSD/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c
/*
 * Unpacks an nvlist from the ZFS ioctl command structure.
 */
Unpacks an nvlist from the ZFS ioctl command structure.
Unpacks an nvlist from the ZFS ioctl command structure .
int
zcmd_read_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t **nvlp)
{
	if (nvlist_unpack((void *)(uintptr_t)zc->zc_nvlist_dst,
	    zc->zc_nvlist_dst_size, nvlp, 0) != 0)
		return (no_memory(hdl));
	return (0);
}
int zcmd_read_dst_nvlist ( libzfs_handle_t * hdl , zfs_cmd_t * zc , nvlist_t * * nvlp ) { if ( nvlist_unpack ( ( void * ) ( uintptr_t ) zc -> zc_nvlist_dst , zc -> zc_nvlist_dst_size , nvlp , 0 ) != 0 ) return ( no_memory ( hdl ) ) ; return ( 0 ) ; }
Unpacks an nvlist from the ZFS ioctl command structure.
Unpacks an nvlist from the ZFS ioctl command structure .