VirtualBox

Changeset 70033 in vbox


Ignore:
Timestamp:
Dec 8, 2017 2:21:58 PM (7 years ago)
Author:
vboxsync
Message:

VBoxGuest-linux.c: g_pKernelSession is for the input driver stuff, so document it as such and keep it inside #ifdef VBOXGUEST_WITH_INPUT_DRIVER.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c

    r69500 r70033  
    226226};
    227227
     228#ifdef VBOXGUEST_WITH_INPUT_DRIVER
     229/** Kernel IDC session to ourselves for use with the mouse events. */
    228230static PVBOXGUESTSESSION        g_pKernelSession = NULL;
     231#endif
    229232
    230233
     
    512515#endif /* VBOXGUEST_WITH_INPUT_DRIVER */
    513516
    514 
    515517/**
    516518 * Creates the device nodes.
     
    628630            if (RT_SUCCESS(rc))
    629631            {
     632#ifdef VBOXGUEST_WITH_INPUT_DRIVER
    630633                /*
    631634                 * Create the kernel session for this driver.
     
    637640                     * Create the kernel input device.
    638641                     */
    639 #ifdef VBOXGUEST_WITH_INPUT_DRIVER
    640642                    rc = vgdrvLinuxCreateInputDevice();
    641643                    if (rc >= 0)
     
    665667                        rc = RTErrConvertFromErrno(rc);
    666668                    }
    667 #endif
    668669                    VGDrvCommonCloseSession(&g_DevExt, g_pKernelSession);
     670#endif
    669671                }
    670672                VGDrvCommonDeleteDevExt(&g_DevExt);
     
    702704#ifdef VBOXGUEST_WITH_INPUT_DRIVER
    703705    vgdrvLinuxTermInputDevice();
    704 #endif
    705706    VGDrvCommonCloseSession(&g_DevExt, g_pKernelSession);
     707#endif
    706708    VGDrvCommonDeleteDevExt(&g_DevExt);
    707709    vgdrvLinuxTermISR();
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