VirtualBox

Changeset 90871 in vbox


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

Solaris host: bugref:10089 VBoxUSBMon-solaris: Fixed getinfo() callback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/solaris/VBoxUSBMon-solaris.c

    r90804 r90871  
    304304
    305305            g_pDip = pDip;
    306             int instance = ddi_get_instance(pDip);
    307             int rc = ddi_create_priv_minor_node(pDip, DEVICE_NAME, S_IFCHR, instance, DDI_PSEUDO, 0,
    308                                                         "none", "none", 0660);
     306            int rc = ddi_create_priv_minor_node(pDip, DEVICE_NAME, S_IFCHR, 0 /* instance */, DDI_PSEUDO, 0 /* flags */,
     307                                                "none", "none", 0660);
    309308            if (rc == DDI_SUCCESS)
    310309            {
     
    402401    {
    403402        case DDI_INFO_DEVT2DEVINFO:
     403        {
    404404            *ppvResult = (void *)g_pDip;
     405            if (!*ppvResult)
     406                rc = DDI_FAILURE;
    405407            break;
     408        }
    406409
    407410        case DDI_INFO_DEVT2INSTANCE:
    408             *ppvResult = (void *)(uintptr_t)ddi_get_instance(g_pDip);
     411        {
     412            /* There can only be a single-instance of this driver and thus its instance number is 0. */
     413            *ppvResult = (void *)0;
    409414            break;
     415        }
    410416
    411417        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