Changeset 15831 in vbox
- Timestamp:
- Jan 7, 2009 12:51:42 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 41419
- Location:
- trunk/src/VBox/Devices/Storage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvHostBase.h
r15815 r15831 134 134 /** Double buffer required for ioctl with the Linux kernel as long as we use 135 135 * remap_pfn_range() instead of vm_insert_page(). */ 136 void*pbDoubleBuffer;136 uint8_t *pbDoubleBuffer; 137 137 #endif 138 138 -
trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp
r15815 r15831 632 632 } 633 633 634 634 635 #ifdef VBOX_WITH_SUID_WRAPPER 635 636 /* These functions would have to go into a seperate solaris binary with … … 637 638 * return the value. BUT... this might be prohibitively slow. 638 639 */ 639 #ifdef RT_OS_SOLARIS 640 # ifdef RT_OS_SOLARIS 641 640 642 /** 641 643 * Checks if the current user is authorized using Solaris' role-based access control. … … 655 657 } 656 658 659 657 660 /** 658 661 * Setuid wrapper to gain root access. … … 675 678 return VINF_SUCCESS; 676 679 } 680 677 681 678 682 /** … … 697 701 return VINF_SUCCESS; 698 702 } 699 #endif /* RT_OS_SOLARIS */ 700 #endif 703 704 # endif /* RT_OS_SOLARIS */ 705 #endif /* VBOX_WITH_SUID_WRAPPER */ 706 701 707 702 708 /* -=-=-=-=- driver interface -=-=-=-=- */ 709 710 711 /** @copydoc FNPDMDRVDESTRUCT */ 712 DECLCALLBACK(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 } 703 725 704 726 … … 735 757 */ 736 758 #ifdef RT_OS_LINUX 737 pThis->pbDoubleBuffer = RTMemAlloc(SCSI_MAX_BUFFER_SIZE);759 pThis->pbDoubleBuffer = (uint8_t *)RTMemAlloc(SCSI_MAX_BUFFER_SIZE); 738 760 if (!pThis->pbDoubleBuffer) 739 761 return VERR_NO_MEMORY; … … 793 815 } 794 816 795 /** @copydoc FNPDMDRVDESTRUCT */796 DECLCALLBACK(void) drvHostDvdDestruct(PPDMDRVINS pDrvIns)797 {798 #ifdef RT_OS_LINUX799 PDRVHOSTBASE pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTBASE);800 801 if (pThis->pbDoubleBuffer)802 {803 RTMemFree(pThis->pbDoubleBuffer);804 pThis->pbDoubleBuffer = NULL;805 }806 #endif807 return DRVHostBaseDestruct(pDrvIns);808 }809 817 810 818 /**
Note:
See TracChangeset
for help on using the changeset viewer.