Changeset 18968 in vbox for trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c
- Timestamp:
- Apr 16, 2009 10:49:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c
r18915 r18968 104 104 /** The dev_clone event handler tag. */ 105 105 static eventhandler_tag g_VBoxDrvFreeBSDEHTag; 106 /** Reference counter */107 static volatile uint32_t cUsers;106 /** Reference counter. */ 107 static volatile uint32_t g_cUsers; 108 108 109 109 /** The device extention. */ … … 151 151 dprintf(("VBoxDrvFreeBSDLoad:\n")); 152 152 153 cUsers = 0;153 g_cUsers = 0; 154 154 155 155 /* … … 194 194 dprintf(("VBoxDrvFreeBSDUnload:\n")); 195 195 196 if ( cUsers > 0)196 if (g_cUsers > 0) 197 197 return EBUSY; 198 198 … … 313 313 if (ASMAtomicCmpXchgPtr(&pDev->si_drv1, pSession, (void *)0x42)) 314 314 { 315 ASMAtomicIncU32(& cUsers);315 ASMAtomicIncU32(&g_cUsers); 316 316 return 0; 317 317 } … … 347 347 if (!ASMAtomicCmpXchgPtr(&pDev->si_drv1, NULL, pSession)) 348 348 OSDBGPRINT(("VBoxDrvFreeBSDClose: si_drv1=%p expected %p!\n", pDev->si_drv1, pSession)); 349 ASMAtomicDecU32(& cUsers);349 ASMAtomicDecU32(&g_cUsers); 350 350 /* Don't use destroy_dev here because it may sleep resulting in a hanging user process. */ 351 351 destroy_dev_sched(pDev);
Note:
See TracChangeset
for help on using the changeset viewer.