VirtualBox

Changeset 58089 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Oct 7, 2015 12:33:00 PM (9 years ago)
Author:
vboxsync
Message:

VBoxGuest,VBoxService,Doxyfile.Core: fixes.

Location:
trunk/src/VBox/Additions/common
Files:
12 edited

Legend:

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

    r58053 r58089  
    5656/** The device name. */
    5757#define DEVICE_NAME             "vboxguest"
    58 /** The device name for the device node open to everyone.. */
     58/** The device name for the device node open to everyone. */
    5959#define DEVICE_NAME_USER        "vboxuser"
    6060/** The name of the PCI driver */
     
    334334 * @param   iIrq            The IRQ number.
    335335 * @param   pvDevId         The device ID, a pointer to g_DevExt.
    336  * @param   pvRegs          Register set. Removed in 2.6.19.
    337  */
    338 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)
    339 static irqreturn_t vboxguestLinuxISR(int iIrrq, void *pvDevId)
     336 * @param   pRegs           Register set. Removed in 2.6.19.
     337 */
     338#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19) && !defined(DOXYGEN_RUNNING)
     339static irqreturn_t vboxguestLinuxISR(int iIrq, void *pvDevId)
    340340#else
    341 static irqreturn_t vboxguestLinuxISR(int iIrrq, void *pvDevId, struct pt_regs *pRegs)
     341static irqreturn_t vboxguestLinuxISR(int iIrq, void *pvDevId, struct pt_regs *pRegs)
    342342#endif
    343343{
     
    742742 * Device I/O Control entry point.
    743743 *
     744 * @param   pInode      Associated inode pointer.
    744745 * @param   pFilp       Associated file pointer.
    745746 * @param   uCmd        The function specified to ioctl().
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-os2.cpp

    r58053 r58089  
    224224 * @returns VBox status code.
    225225 * @retval  VERR_VERSION_MISMATCH       The VMMDev memory didn't meet our expectations.
    226  *
    227  * @param   pDevExt     The device extension.
    228226 */
    229227static int vboxGuestOS2MapMemory(void)
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp

    r58053 r58089  
    555555 * Do not delete DevExt here.
    556556 *
    557  * @param   pDrvObj     Driver object.
     557 * @param   pDevObj     Device object.
    558558 */
    559559NTSTATUS vbgdNtCleanup(PDEVICE_OBJECT pDevObj)
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r58053 r58089  
    502502 * @returns VBox status code.
    503503 * @param   pDevExt         The device extension.
    504  * @param   pSession        The session.
    505504 * @param   cBalloonChunks  The new size of the balloon in chunks of 1MB.
    506505 * @param   pfHandleInR3    Where to return the handle-in-ring3 indicator
     
    727726 *
    728727 * @param   pDevExt     The device extension.
    729  * @param   pDevExt     The session.  Can be NULL at unload.
     728 * @param   pSession    The session.  Can be NULL at unload.
    730729 */
    731730static void vgdrvCloseMemBalloon(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession)
     
    17681767 *
    17691768 * @returns VINF_SUCCESS or VERR_PERMISSION_DENIED.
     1769 * @param   pDevExt             The device extension.
    17701770 * @param   pSession            The calling session.
    17711771 * @param   enmType             The request type.
     
    24592459 * @param   cbData              Size of the buffer.
    24602460 * @param   pcbDataReturned     Where to store the amount of returned data. Can be NULL.
     2461 * @param   fUserSession        Copy of VBOXGUESTSESSION::fUserSession for the
     2462 *                              call.  True normal user, false root user.
    24612463 */
    24622464static int vgdrvIoCtl_Log(PVBOXGUESTDEVEXT pDevExt, const char *pch, size_t cbData, size_t *pcbDataReturned, bool fUserSession)
     
    29562958 *
    29572959 * @returns VBox status code.
    2958  * @param   fMask       The new mask.
     2960 * @param   pDevExt             The device extension.
     2961 * @param   pReq                The request.
    29592962 */
    29602963static int vgdrvUpdateCapabilitiesOnHostWithReqAndLock(PVBOXGUESTDEVEXT pDevExt, VMMDevReqGuestCapabilities2 *pReq)
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuestIDC-unix.c.h

    r58053 r58089  
    9898 *
    9999 * @returns VBox error code.
    100  * @param   pvState             Opaque pointer to the session object.
     100 * @param   pvSession           Opaque pointer to the session object.
    101101 */
    102102DECLEXPORT(int) VBOXCALL VBoxGuestIDCClose(void *pvSession)
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuestInternal.h

    r58053 r58089  
    3737#include <VBox/VBoxGuestLib.h>
    3838
    39 /** @def VBOXGUEST_USE_WAKE_UP_LIST
     39/** @def VBOXGUEST_USE_DEFERRED_WAKE_UP
    4040 * Defer wake-up of waiting thread when defined. */
    4141#if defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS) || defined(RT_OS_WINDOWS) || defined(DOXYGEN_RUNNING)
     
    8888typedef struct VBOXGUESTMEMBALLOON
    8989{
    90     /** Mutex protecting the members below from concurrent access.. */
     90    /** Mutex protecting the members below from concurrent access. */
    9191    RTSEMFASTMUTEX              hMtx;
    9292    /** The current number of chunks in the balloon. */
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlProcess.cpp

    r58031 r58089  
    224224 * @return  IPRT status code.
    225225 * @param   pProcess            Process to wait shutting down for.
    226  * @param   RTMSINTERVAL        Timeout in ms to wait for shutdown.
     226 * @param   msTimeout           Timeout in ms to wait for shutdown.
    227227 * @param   prc                 Where to store the thread's return code.
    228228 *                              Optional.
     
    280280 *
    281281 * @return  IPRT status code.
    282  * @param   hPollSet            The polling set.
     282 * @param   pProcess            The process which input pipe we close.
    283283 * @param   phStdInW            The standard input pipe handle.
    284284 */
     
    14051405 *
    14061406 * @return  IPRT status code.
    1407  * @param   PVBOXSERVICECTRLPROCESS         Guest process.
     1407 * @param   pProcess        The process we're servicing and monitoring.
    14081408 */
    14091409static int vgsvcGstCtrlProcessProcessWorker(PVBOXSERVICECTRLPROCESS pProcess)
     
    17191719 *
    17201720 * @return IPRT status code.
    1721  * @param  RTTHREAD             Pointer to the thread's data.
    1722  * @param  void*                User-supplied argument pointer.
    1723  *
    1724  */
    1725 static DECLCALLBACK(int) vgsvcGstCtrlProcessThread(RTTHREAD ThreadSelf, void *pvUser)
    1726 {
    1727     PVBOXSERVICECTRLPROCESS pProcess = (VBOXSERVICECTRLPROCESS*)pvUser;
     1721 * @param  hThreadSelf      The thread handle.
     1722 * @param  pvUser           Pointer to a VBOXSERVICECTRLPROCESS structure.
     1723 *
     1724 */
     1725static DECLCALLBACK(int) vgsvcGstCtrlProcessThread(RTTHREAD hThreadSelf, void *pvUser)
     1726{
     1727    PVBOXSERVICECTRLPROCESS pProcess = (PVBOXSERVICECTRLPROCESS)pvUser;
    17281728    AssertPtrReturn(pProcess, VERR_INVALID_POINTER);
    17291729    return vgsvcGstCtrlProcessProcessWorker(pProcess);
     
    17481748 * @param   pStartupInfo                Startup info.
    17491749 * @param   uContextID                  Context ID to associate the process to start with.
    1750 
    17511750 */
    17521751int VGSvcGstCtrlProcessStart(const PVBOXSERVICECTRLSESSION pSession,
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r58042 r58089  
    15921592 *
    15931593 * @return  VBox status code.
     1594 * @param   pSession            The guest session.
    15941595 * @param   pbAllowed           True if starting (another) guest process
    15951596 *                              is allowed, false if not.
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp

    r58052 r58089  
    300300/**
    301301 * Inspect all loaded modules for the specified process
     302 *
    302303 * @param   dwProcessId     Process id
     304 * @param   ppNewTree       The module tree we're assembling from modules found
     305 *                          in this process.  Modules found are moved from
     306 *                          g_pKnownModuleTree or created new.
    303307 */
    304308static void vgsvcPageSharingInspectModules(DWORD dwProcessId, PAVLPVNODECORE *ppNewTree)
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceToolBox.cpp

    r58029 r58089  
    967967
    968968/**
    969  * Report the result of a vbox_mktemp operation - either errors to stderr (not
    970  * machine-readable) or everything to stdout as <name>\0<rc>\0 (machine-
    971  * readable format).  The message may optionally contain a '%s' for the file
    972  * name and an %Rrc for the result code in that order.  In future a "verbose"
    973  * flag may be added, without which nothing will be output in non-machine-
    974  * readable mode.  Sets prc if rc is a non-success code.
     969 * Report the result of a vbox_mktemp operation.
     970 *
     971 * Either errors to stderr (not machine-readable) or everything to stdout as
     972 * {name}\0{rc}\0 (machine- readable format).  The message may optionally
     973 * contain a '%s' for the file name and an %Rrc for the result code in that
     974 * order.  In future a "verbose" flag may be added, without which nothing will
     975 * be output in non-machine- readable mode.  Sets prc if rc is a non-success
     976 * code.
    975977 */
    976978static void toolboxMkTempReport(const char *pcszMessage, const char *pcszFile,
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceUtils.cpp

    r58031 r58089  
    269269 * @returns VBox status code.
    270270 * @param   pszFilename         ASCII & ANSI & UTF-8 compliant name.
     271 * @param   pdwMajor            Where to return the major version number.
     272 * @param   pdwMinor            Where to return the minor version number.
     273 * @param   pdwBuildNumber      Where to return the build number.
     274 * @param   pdwRevisionNumber   Where to return the revision number.
    271275 */
    272276static int vgsvcUtilGetFileVersion(const char *pszFilename, PDWORD pdwMajor, PDWORD pdwMinor, PDWORD pdwBuildNumber,
     
    347351 *
    348352 * @param   pszPath         The base path.
    349  * @param   pszFilaname     The filename.
     353 * @param   pszFilename     The filename.
    350354 * @param   pszVersion      Where to return the version string.
    351355 * @param   cbVersion       The size of the version string buffer. This MUST be
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp

    r58031 r58089  
    607607 * vgsvcVMInfoWinProcessesEnumerate() before.
    608608 *
    609  * @param   paProcs     What
     609 * @param   cProcs      Number of processes in paProcs.
     610 * @param   paProcs     The process array.
    610611 */
    611612static void vgsvcVMInfoWinProcessesFree(DWORD cProcs, PVBOXSERVICEVMINFOPROC paProcs)
    612613{
    613614    for (DWORD i = 0; i < cProcs; i++)
    614     {
    615615        if (paProcs[i].pSid)
    616616        {
     
    618618            paProcs[i].pSid = NULL;
    619619        }
    620 
    621     }
    622620    RTMemFree(paProcs);
    623621}
     
    627625 *
    628626 * @returns Number of processes found for a specified session.
    629  * @param   pSession        The current user's SID.
    630  * @param   paProcs         The process snapshot.
    631  * @param   cProcs          The number of processes in the snaphot.
    632  * @param   puSession       Looked up session number.  Optional.
     627 * @param   pSession            The current user's SID.
     628 * @param   paProcs             The process snapshot.
     629 * @param   cProcs              The number of processes in the snaphot.
     630 * @param   puTerminalSession   Where to return terminal session number.
     631 *                              Optional.
    633632 */
    634 static uint32_t vgsvcVMInfoWinSessionHasProcesses(PLUID pSession,
    635                                                   PVBOXSERVICEVMINFOPROC const paProcs, DWORD cProcs, PULONG puTerminalSession)
     633static uint32_t vgsvcVMInfoWinSessionHasProcesses(PLUID pSession, PVBOXSERVICEVMINFOPROC const paProcs, DWORD cProcs,
     634                                                  PULONG puTerminalSession)
    636635{
    637636    if (!pSession)
     
    10631062 *
    10641063 * @returns VBox status code.
    1065  * @param   pCachce         Property cache to use for storing some of the lookup
     1064 * @param   pCache          Property cache to use for storing some of the lookup
    10661065 *                          data in between calls.
    10671066 * @param   ppszUserList    Where to store the user list (separated by commas).
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