Changeset 25181 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Dec 4, 2009 10:38:46 AM (15 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.c
r25180 r25181 842 842 if (pBundle->aMem[i].MemObj != NIL_RTR0MEMOBJ) 843 843 { 844 int rc;845 844 Log2(("eType=%d pvR0=%p pvR3=%p cb=%ld\n", pBundle->aMem[i].eType, RTR0MemObjAddress(pBundle->aMem[i].MemObj), 846 845 (void *)RTR0MemObjAddressR3(pBundle->aMem[i].MapObjR3), (long)RTR0MemObjSize(pBundle->aMem[i].MemObj))); -
trunk/src/VBox/HostDrivers/Support/SUPR0IdcClientStubs.c
r10258 r25181 81 81 SUPR0DECL(void *) SUPR0ObjRegister(PSUPDRVSESSION pSession, SUPDRVOBJTYPE enmType, PFNSUPDRVDESTRUCTOR pfnDestructor, void *pvUser1, void *pvUser2) 82 82 { 83 static DECLCALLBACKPTR(void *, s_pfn)(PSUPDRVSESSION pSession, SUPDRVOBJTYPE enmType, PFNSUPDRVDESTRUCTOR pfnDestructor, void *pvUser1, void *pvUser2);84 DECLCALLBACKPTR(void *, pfn)(PSUPDRVSESSION pSession, SUPDRVOBJTYPE enmType, PFNSUPDRVDESTRUCTOR pfnDestructor, void *pvUser1, void *pvUser2);83 static DECLCALLBACKPTR(void *, s_pfn)(PSUPDRVSESSION /* pSession */, SUPDRVOBJTYPE /* enmType */, PFNSUPDRVDESTRUCTOR /* pfnDestructor */, void * /* pvUser1 */, void * /* pvUser2 */); 84 DECLCALLBACKPTR(void *, pfn)(PSUPDRVSESSION /* pSession */, SUPDRVOBJTYPE /* enmType */, PFNSUPDRVDESTRUCTOR /* pfnDestructor */, void * /* pvUser1 */, void * /* pvUser2 */); 85 85 pfn = s_pfn; 86 86 if (!pfn) … … 98 98 SUPR0DECL(int) SUPR0ObjAddRef(void *pvObj, PSUPDRVSESSION pSession) 99 99 { 100 static DECLCALLBACKPTR(int, s_pfn)(void * pvObj, PSUPDRVSESSION pSession);101 DECLCALLBACKPTR(int, pfn)(void * pvObj, PSUPDRVSESSION pSession);100 static DECLCALLBACKPTR(int, s_pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */); 101 DECLCALLBACKPTR(int, pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */); 102 102 pfn = s_pfn; 103 103 if (!pfn) … … 115 115 SUPR0DECL(int) SUPR0ObjRelease(void *pvObj, PSUPDRVSESSION pSession) 116 116 { 117 static DECLCALLBACKPTR(int, s_pfn)(void * pvObj, PSUPDRVSESSION pSession);118 DECLCALLBACKPTR(int, pfn)(void * pvObj, PSUPDRVSESSION pSession);117 static DECLCALLBACKPTR(int, s_pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */); 118 DECLCALLBACKPTR(int, pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */); 119 119 pfn = s_pfn; 120 120 if (!pfn) … … 132 132 SUPR0DECL(int) SUPR0ObjVerifyAccess(void *pvObj, PSUPDRVSESSION pSession, const char *pszObjName) 133 133 { 134 static DECLCALLBACKPTR(int, s_pfn)(void * pvObj, PSUPDRVSESSION pSession, const char *pszObjName);135 DECLCALLBACKPTR(int, pfn)(void * pvObj, PSUPDRVSESSION pSession, const char *pszObjName);134 static DECLCALLBACKPTR(int, s_pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */, const char * /* pszObjName */); 135 DECLCALLBACKPTR(int, pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */, const char * /* pszObjName */); 136 136 pfn = s_pfn; 137 137 if (!pfn) -
trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c
r24179 r25181 150 150 static struct modlinkage g_VBoxDrvSolarisModLinkage = 151 151 { 152 MODREV_1, /* loadable module system revision */ 153 &g_VBoxDrvSolarisModule, 154 NULL /* terminate array of linkage structures */ 152 MODREV_1, /* loadable module system revision */ 153 { 154 &g_VBoxDrvSolarisModule, 155 NULL /* terminate array of linkage structures */ 156 } 155 157 }; 156 158 … … 220 222 if (RT_SUCCESS(rc)) 221 223 { 222 intrc = ddi_soft_state_init(&g_pVBoxDrvSolarisState, sizeof(vbox_devstate_t), 8);224 rc = ddi_soft_state_init(&g_pVBoxDrvSolarisState, sizeof(vbox_devstate_t), 8); 223 225 if (!rc) 224 226 { … … 378 380 static int VBoxDrvSolarisDetach(dev_info_t *pDip, ddi_detach_cmd_t enmCmd) 379 381 { 380 int rc = VINF_SUCCESS;381 382 382 LogFlow((DEVICE_NAME ":VBoxDrvSolarisDetach\n")); 383 383 switch (enmCmd) … … 385 385 case DDI_DETACH: 386 386 { 387 int instance = ddi_get_instance(pDip);388 387 #ifndef USE_SESSION_HASH 389 388 ddi_remove_minor_node(pDip, NULL); 390 389 #else 390 int instance = ddi_get_instance(pDip); 391 391 vbox_devstate_t *pState = ddi_get_soft_state(g_pVBoxDrvSolarisState, instance); 392 392 ddi_remove_minor_node(pDip, NULL); … … 512 512 513 513 *pDev = makedevice(getmajor(*pDev), instance); 514 #endif 514 515 515 516 return VBoxSupDrvErr2SolarisErr(rc); 516 #endif517 517 } 518 518
Note:
See TracChangeset
for help on using the changeset viewer.