Home
last modified time | relevance | path

Searched refs:nhdls (Results 1 – 4 of 4) sorted by relevance

/titanic_41/usr/src/lib/libds/common/
H A Dlibds.c192 uint_t nhdls; in ds_free_dslibentry() local
200 nhdls = ds_service_count(dsp->dsl_service, in ds_free_dslibentry()
203 if ((nhdls == 1 && force_unreg) || nhdls >= 2) { in ds_free_dslibentry()
209 } else if (nhdls == 1) { in ds_free_dslibentry()
356 uint_t nhdls; in ds_register() local
373 &nhdls) == 0 && nhdls == 1) { in ds_register()
691 uint_t nhdls; in ds_unreg_svc() local
693 while (ds_hdl_lookup(service, is_client, &hdl, 1, &nhdls) == 0 && in ds_unreg_svc()
694 nhdls == 1) { in ds_unreg_svc()
/titanic_41/usr/src/cmd/th_tools/
H A Dth_define.c1460 get_hinfo(int fd, char *name, struct handle_info **hip, size_t *nhdls, in get_hinfo() argument
1482 *nhdls = 0; in get_hinfo()
1486 } else if ((*nhdls = hdli.count) == 0) { in get_hinfo()
1489 } else if ((*hip = GETSTRUCT(struct handle_info, *nhdls)) == 0) { in get_hinfo()
1506 if (hdli.count < *nhdls) in get_hinfo()
1507 *nhdls = hdli.count; /* some handles have gone away */ in get_hinfo()
1509 msg(4, "qsorting %d handles\n", *nhdls); in get_hinfo()
1510 if (*nhdls > 1) in get_hinfo()
1512 qsort((void *)*hip, *nhdls, sizeof (**hip), hdl_cmp); in get_hinfo()
1514 if ((chosen = malloc(sizeof (hp) * *nhdls)) != NULL) { in get_hinfo()
[all …]
/titanic_41/usr/src/uts/sun4v/io/
H A Dvlds.c687 uint_t is_client, maxhdls, nhdls; in vlds_ioctl() local
724 rv = ds_hdl_lookup(servicep, is_client, hdlsp, maxhdls, &nhdls); in vlds_ioctl()
736 if (hdlsp != NULL && nhdls > 0 && in vlds_ioctl()
738 nhdls * sizeof (ds_svc_hdl_t), mode) != 0) { in vlds_ioctl()
750 nhdls_arg = nhdls; in vlds_ioctl()
758 __func__, nhdls); in vlds_ioctl()
H A Dds_common.c2691 uint_t nhdls = 0; in ds_cap_fini() local
2694 if ((rv = ds_hdl_lookup(cap->svc_id, 0, &hdl, 1, &nhdls)) != 0) { in ds_cap_fini()
2700 if (nhdls == 0) { in ds_cap_fini()
3234 int nhdls = 0; in i_ds_hdl_lookup() local
3240 for (idx = 0; idx < ds_svcs.maxsvcs && nhdls < maxhdls; idx++) { in i_ds_hdl_lookup()
3246 if (hdlp != NULL && nhdls < maxhdls) { in i_ds_hdl_lookup()
3247 hdlp[nhdls] = svc->hdl; in i_ds_hdl_lookup()
3248 nhdls++; in i_ds_hdl_lookup()
3250 nhdls++; in i_ds_hdl_lookup()
3254 return (nhdls); in i_ds_hdl_lookup()