Changeset 90875 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Aug 25, 2021 11:30:26 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.c
r87579 r90875 292 292 return DDI_FAILURE; 293 293 } 294 295 int instance = ddi_get_instance(pDip);296 294 297 295 /* … … 347 345 VGDrvCommonProcessOptionsFromHost(&g_DevExt); 348 346 349 rc = ddi_create_minor_node(pDip, DEVICE_NAME, S_IFCHR, instance, DDI_PSEUDO, 0 /* fFlags */); 347 rc = ddi_create_minor_node(pDip, DEVICE_NAME, S_IFCHR, 0 /* instance */, DDI_PSEUDO, 348 0 /* fFlags */); 350 349 if (rc == DDI_SUCCESS) 351 350 { … … 468 467 { 469 468 case DDI_INFO_DEVT2DEVINFO: 469 { 470 470 *ppvResult = (void *)g_pDip; 471 if (!*ppvResult) 472 rc = DDI_FAILURE; 471 473 break; 474 } 472 475 473 476 case DDI_INFO_DEVT2INSTANCE: 474 *ppvResult = (void *)(uintptr_t)ddi_get_instance(g_pDip); 477 { 478 /* There can only be a single-instance of this driver and thus its instance number is 0. */ 479 *ppvResult = (void *)0; 475 480 break; 481 } 476 482 477 483 default:
Note:
See TracChangeset
for help on using the changeset viewer.