Changeset 4287 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Aug 22, 2007 2:49:19 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c
r4178 r4287 45 45 *******************************************************************************/ 46 46 /** The module name. */ 47 #define DEVICE_NAME "vboxdrv" 48 #define DEVICE_DESC "VirtualBox Driver" 47 #define DEVICE_NAME "vboxdrv" 48 #define DEVICE_DESC "VirtualBox Driver" 49 #define DEVICE_MAXINSTANCES 16 49 50 50 51 … … 225 226 } 226 227 228 int instance; 229 for (instance = 0; instance < DEVICE_MAXINSTANCES; instance++) 230 { 231 vbox_devstate_t *pState = ddi_get_soft_state (g_pVBoxDrvSolarisState, instance); 232 if (pState) 233 break; 234 } 235 236 if (instance >= DEVICE_MAXINSTANCES) 237 { 238 cmn_err(CE_NOTE, "All instances exhausted\n"); 239 return ENXIO; 240 } 241 242 *pDev = makedevice(getmajor(*pDev), instance); 243 227 244 return VBoxSupDrvErr2SolarisErr(rc); 228 245 } … … 351 368 pState->pDip = pDip; 352 369 ddi_report_dev(pDip); 353 354 cmn_err(CE_CONT, "VBoxDrvSolarisAttach: successful.");355 370 return DDI_SUCCESS; 356 371 }
Note:
See TracChangeset
for help on using the changeset viewer.