VirtualBox

Changeset 15831 in vbox


Ignore:
Timestamp:
Jan 7, 2009 12:51:42 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41419
Message:

DrvHostBase.h,DrvHostDVD.cpp: nitpicking: Changed pbDoubleBuffer to uint8_t * from void * so it matches the name. Corrected method order as well as some spaces, comments and indentation.

Location:
trunk/src/VBox/Devices/Storage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvHostBase.h

    r15815 r15831  
    134134    /** Double buffer required for ioctl with the Linux kernel as long as we use
    135135     * remap_pfn_range() instead of vm_insert_page(). */
    136     void                    *pbDoubleBuffer;
     136    uint8_t                *pbDoubleBuffer;
    137137#endif
    138138
  • trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp

    r15815 r15831  
    632632}
    633633
     634
    634635#ifdef VBOX_WITH_SUID_WRAPPER
    635636/* These functions would have to go into a seperate solaris binary with
     
    637638 * return the value. BUT... this might be prohibitively slow.
    638639 */
    639 #ifdef RT_OS_SOLARIS
     640# ifdef RT_OS_SOLARIS
     641
    640642/**
    641643 * Checks if the current user is authorized using Solaris' role-based access control.
     
    655657}
    656658
     659
    657660/**
    658661 * Setuid wrapper to gain root access.
     
    675678    return VINF_SUCCESS;
    676679}
     680
    677681
    678682/**
     
    697701    return VINF_SUCCESS;
    698702}
    699 #endif   /* RT_OS_SOLARIS */
    700 #endif
     703
     704# endif   /* RT_OS_SOLARIS */
     705#endif /* VBOX_WITH_SUID_WRAPPER */
     706
    701707
    702708/* -=-=-=-=- driver interface -=-=-=-=- */
     709
     710
     711/** @copydoc FNPDMDRVDESTRUCT */
     712DECLCALLBACK(void) drvHostDvdDestruct(PPDMDRVINS pDrvIns)
     713{
     714#ifdef RT_OS_LINUX
     715    PDRVHOSTBASE pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTBASE);
     716
     717    if (pThis->pbDoubleBuffer)
     718    {
     719        RTMemFree(pThis->pbDoubleBuffer);
     720        pThis->pbDoubleBuffer = NULL;
     721    }
     722#endif
     723    return DRVHostBaseDestruct(pDrvIns);
     724}
    703725
    704726
     
    735757         */
    736758#ifdef RT_OS_LINUX
    737         pThis->pbDoubleBuffer = RTMemAlloc(SCSI_MAX_BUFFER_SIZE);
     759        pThis->pbDoubleBuffer = (uint8_t *)RTMemAlloc(SCSI_MAX_BUFFER_SIZE);
    738760        if (!pThis->pbDoubleBuffer)
    739761            return VERR_NO_MEMORY;
     
    793815}
    794816
    795 /** @copydoc FNPDMDRVDESTRUCT */
    796 DECLCALLBACK(void) drvHostDvdDestruct(PPDMDRVINS pDrvIns)
    797 {
    798 #ifdef RT_OS_LINUX
    799     PDRVHOSTBASE pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTBASE);
    800 
    801     if (pThis->pbDoubleBuffer)
    802     {
    803         RTMemFree(pThis->pbDoubleBuffer);
    804         pThis->pbDoubleBuffer = NULL;
    805     }
    806 #endif
    807     return DRVHostBaseDestruct(pDrvIns);
    808 }
    809817
    810818/**
Note: See TracChangeset for help on using the changeset viewer.

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