VirtualBox

Changeset 90875 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 25, 2021 11:30:26 AM (3 years ago)
Author:
vboxsync
Message:

Solaris guest: bugref:10089 VBoxGuest: Fixed getinfo() callback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.c

    r87579 r90875  
    292292                return DDI_FAILURE;
    293293            }
    294 
    295             int instance = ddi_get_instance(pDip);
    296294
    297295            /*
     
    347345                                    VGDrvCommonProcessOptionsFromHost(&g_DevExt);
    348346
    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 */);
    350349                                    if (rc == DDI_SUCCESS)
    351350                                    {
     
    468467    {
    469468        case DDI_INFO_DEVT2DEVINFO:
     469        {
    470470            *ppvResult = (void *)g_pDip;
     471            if (!*ppvResult)
     472                rc = DDI_FAILURE;
    471473            break;
     474        }
    472475
    473476        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;
    475480            break;
     481        }
    476482
    477483        default:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette