Searched defs:icgp (Results 1 - 1 of 1) sorted by relevance

/osnet-11/usr/src/lib/libdladm/common/
H A Dlibdllink.c1199 dld_ioc_cosget_t *icgp = NULL; local
1204 if ((icgp = (dld_ioc_cosget_t *)calloc(1, bufsize)) == NULL)
1207 icgp->dic_size = ncos * sizeof (dld_cosinfo_t);
1208 icgp->dic_linkid = linkid;
1210 if (ioctl(dladm_dld_fd(handle), DLDIOC_GETCOS, icgp) != 0) {
1212 free(icgp);
1216 dcp = (dld_cosinfo_t *)(icgp + 1);
1217 for (i = 0; i < icgp->dic_ncos; i++) {
1234 free(icgp);

Completed in 17 milliseconds