sv_path_info_t
ioc->ret_buf = (sv_path_info_t *)
calloc(initial_path_count, sizeof (sv_path_info_t));
sv_path_info_t *pi;
if ((ioc.ret_buf = calloc(npaths, sizeof (sv_path_info_t)))
pi = (sv_path_info_t *)ioc.ret_buf;
add_to_phci_list(char **phci_list, sv_path_info_t *pi, int npaths, int state,
if ((ioc.ret_buf = (sv_path_info_t *)calloc(npaths,
sizeof (sv_path_info_t))) == NULL)
pi = (sv_path_info_t *)calloc((size_t)num_paths,
sizeof (sv_path_info_t));
ioc->ret_buf = (sv_path_info_t *)
sizeof (sv_path_info_t));
g_free_pi_list(sv_path_info_t *pi, uint_t num_paths)
sv_path_info_t *pi_h = pi;
static void g_free_pi_list(sv_path_info_t *, uint_t num_paths);
sv_path_info_t *pi = NULL;
static int vhci_get_phci_path_list(dev_info_t *, sv_path_info_t *, uint_t);
static int vhci_get_client_path_list(dev_info_t *, sv_path_info_t *, uint_t);
static int vhci_ioc_alloc_pathinfo(sv_path_info_t **, sv_path_info_t **,
static void vhci_ioc_free_pathinfo(sv_path_info_t *, sv_path_info_t *, uint_t);
static int vhci_ioc_send_pathinfo(sv_path_info_t *, sv_path_info_t *, uint_t,
sv_path_info_t *upibuf = NULL; /* To keep userland values */
sv_path_info_t *kpibuf = NULL; /* Kernel data for ioctls */
sv_path_info_t *upibuf = NULL; /* To keep userland values */
sv_path_info_t *kpibuf = NULL; /* Kernel data for ioctls */
vhci_get_phci_path_list(dev_info_t *pdip, sv_path_info_t *pibuf,
sv_path_info_t *ret_pip;
vhci_get_client_path_list(dev_info_t *cdip, sv_path_info_t *pibuf,
sv_path_info_t *ret_pip;
pioc->ret_buf = (sv_path_info_t *)(uintptr_t)ioc32.ret_buf;
vhci_ioc_alloc_pathinfo(sv_path_info_t **upibuf, sv_path_info_t **kpibuf,
sv_path_info_t *pi;
*upibuf = (sv_path_info_t *)
kmem_zalloc(sizeof (sv_path_info_t) * num_paths, KM_SLEEP);
*kpibuf = (sv_path_info_t *)
kmem_zalloc(sizeof (sv_path_info_t) * num_paths, KM_SLEEP);
pi = (sv_path_info_t *)*upibuf;
sizeof (sv_path_info_t) * num_paths, mode)) {
sizeof (sv_path_info_t) * num_paths, mode)) {
kmem_free(*upibuf, sizeof (sv_path_info_t) * num_paths);
kmem_free(*kpibuf, sizeof (sv_path_info_t) * num_paths);
vhci_ioc_free_pathinfo(sv_path_info_t *upibuf, sv_path_info_t *kpibuf,
sv_path_info_t *pi;
kmem_free(upibuf, sizeof (sv_path_info_t) * num_paths);
kmem_free(kpibuf, sizeof (sv_path_info_t) * num_paths);
vhci_ioc_send_pathinfo(sv_path_info_t *upibuf, sv_path_info_t *kpibuf,
sv_path_info_t *upi_ptr;
sv_path_info_t *ret_buf; /* array of sv_path_info */