- Timestamp:
- Aug 25, 2021 11:30:45 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/Mouse/vboxms.c
r82968 r90876 329 329 { 330 330 int rc; 331 int instance = ddi_get_instance(pDip);332 331 /* Only one instance supported. */ 333 332 if (!ASMAtomicCmpXchgPtr(&g_OpenNodeState.pDip, pDip, NULL)) 334 333 return DDI_FAILURE; 335 rc = ddi_create_minor_node(pDip, DEVICE_NAME, S_IFCHR, instance, DDI_PSEUDO, 0);334 rc = ddi_create_minor_node(pDip, DEVICE_NAME, S_IFCHR, 0 /* instance */, DDI_PSEUDO, 0 /* flags */); 336 335 if (rc == DDI_SUCCESS) 337 336 return DDI_SUCCESS; … … 403 402 { 404 403 case DDI_INFO_DEVT2DEVINFO: 404 { 405 405 *ppvResult = (void *)g_OpenNodeState.pDip; 406 if (!*ppvResult) 407 rc = DDI_FAILURE; 406 408 break; 409 } 407 410 408 411 case DDI_INFO_DEVT2INSTANCE: 409 *ppvResult = (void *)(uintptr_t)ddi_get_instance(g_OpenNodeState.pDip); 412 { 413 /* There can only be a single-instance of this driver and thus its instance number is 0. */ 414 *ppvResult = (void *)0; 410 415 break; 416 } 411 417 412 418 default:
Note:
See TracChangeset
for help on using the changeset viewer.