Lines Matching refs:gn
500 md_i_getnum_t gn; /* MD_IOCGET_NUM params */
506 (void) memset(&gn, '\0', sizeof (gn));
507 MD_SETDRIVERNAME(&gn, drivername, sp->setno);
510 if (metaioctl(MD_IOCGET_NUM, &gn, &gn.mde, NULL) != 0) {
511 if (mdiserror(&gn.mde, MDE_UNIT_NOT_FOUND)) {
512 mdclrerror(&gn.mde);
514 (void) mdstealerror(ep, &gn.mde);
519 if (gn.size > 0) {
522 gn.size * sizeof (minor_t))) == 0) {
525 gn.minors = (uintptr_t)minors;
526 if (metaioctl(MD_IOCGET_NUM, &gn, &gn.mde, NULL) != 0) {
527 (void) mdstealerror(ep, &gn.mde);
532 for (i = 0; i < gn.size; i++) {
568 return (gn.size);