VirtualBox

Ignore:
Timestamp:
Apr 16, 2009 10:49:55 PM (16 years ago)
Author:
vboxsync
Message:

SUPDrv-freebsd.c: nitpicking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c

    r18915 r18968  
    104104/** The dev_clone event handler tag. */
    105105static eventhandler_tag     g_VBoxDrvFreeBSDEHTag;
    106 /** Reference counter */
    107 static volatile uint32_t    cUsers;
     106/** Reference counter. */
     107static volatile uint32_t    g_cUsers;
    108108
    109109/** The device extention. */
     
    151151    dprintf(("VBoxDrvFreeBSDLoad:\n"));
    152152
    153     cUsers = 0;
     153    g_cUsers = 0;
    154154
    155155    /*
     
    194194    dprintf(("VBoxDrvFreeBSDUnload:\n"));
    195195
    196     if (cUsers > 0)
     196    if (g_cUsers > 0)
    197197        return EBUSY;
    198198
     
    313313        if (ASMAtomicCmpXchgPtr(&pDev->si_drv1, pSession, (void *)0x42))
    314314        {
    315             ASMAtomicIncU32(&cUsers);
     315            ASMAtomicIncU32(&g_cUsers);
    316316            return 0;
    317317        }
     
    347347        if (!ASMAtomicCmpXchgPtr(&pDev->si_drv1, NULL, pSession))
    348348            OSDBGPRINT(("VBoxDrvFreeBSDClose: si_drv1=%p expected %p!\n", pDev->si_drv1, pSession));
    349         ASMAtomicDecU32(&cUsers);
     349        ASMAtomicDecU32(&g_cUsers);
    350350        /* Don't use destroy_dev here because it may sleep resulting in a hanging user process. */
    351351        destroy_dev_sched(pDev);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette