Changeset 90871 in vbox
- Timestamp:
- Aug 25, 2021 11:28:21 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/solaris/VBoxUSBMon-solaris.c
r90804 r90871 304 304 305 305 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); 309 308 if (rc == DDI_SUCCESS) 310 309 { … … 402 401 { 403 402 case DDI_INFO_DEVT2DEVINFO: 403 { 404 404 *ppvResult = (void *)g_pDip; 405 if (!*ppvResult) 406 rc = DDI_FAILURE; 405 407 break; 408 } 406 409 407 410 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; 409 414 break; 415 } 410 416 411 417 default:
Note:
See TracChangeset
for help on using the changeset viewer.