VirtualBox

Changeset 10454 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Jul 10, 2008 6:58:54 AM (16 years ago)
Author:
vboxsync
Message:

Solaris/VBoxDrv: Don't preallocate 8 soft states. Fixup comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c

    r10377 r10454  
    167167#endif
    168168
    169 /** Opaque pointer to state */
     169/** Opaque pointer to list of state */
    170170static void *g_pVBoxDrvSolarisState;
    171171
     
    190190    dprintf(("VBoxDrvSolaris _init"));
    191191
    192     int rc = ddi_soft_state_init(&g_pVBoxDrvSolarisState, sizeof(vbox_devstate_t), 8);
     192    int rc = ddi_soft_state_init(&g_pVBoxDrvSolarisState, sizeof(vbox_devstate_t), 1);
    193193    if (!rc)
    194194    {
     
    231231 *
    232232 * @param   pDip            The module structure instance.
    233  * @param   enmCmd          Attach type (ddi_attach_cmd_t)
     233 * @param   enmCmd          Operation type (attach/resume).
    234234 *
    235235 * @return  corresponding solaris error code.
     
    331331 *
    332332 * @param   pDip            The module structure instance.
    333  * @param   enmCmd          Attach type (ddi_attach_cmd_t)
     333 * @param   enmCmd          Operation type (detach/suspend).
    334334 *
    335335 * @return  corresponding solaris error code.
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