Changeset 58340 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Oct 20, 2015 1:58:41 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103540
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv-dtrace.cpp
r57358 r58340 1046 1046 /** 1047 1047 * Module initialization code. 1048 *1049 * @param hMod Opque module handle.1050 1048 */ 1051 1049 const SUPDRVTRACERREG * VBOXCALL supdrvDTraceInit(void) -
trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp
r57735 r58340 2398 2398 * @param pSession Session data. 2399 2399 * @param pReqHdr The request header. 2400 * @param cbReq The size of the request buffer. 2400 2401 */ 2401 2402 int VBOXCALL supdrvIOCtl(uintptr_t uIOCtl, PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession, PSUPREQHDR pReqHdr, size_t cbReq) … … 2620 2621 * All future reference must use this identifier. 2621 2622 * @returns NULL on failure. 2623 * @param pSession The caller's session. 2624 * @param enmType The object type. 2622 2625 * @param pfnDestructor The destructore function which will be called when the reference count reaches 0. 2623 2626 * @param pvUser1 The first user argument. … … 3381 3384 * @param ppvR3 Where to store the address of the Ring-3 mapping. 3382 3385 * NULL if no ring-3 mapping. 3383 * @param ppvR 3Where to store the address of the Ring-0 mapping.3386 * @param ppvR0 Where to store the address of the Ring-0 mapping. 3384 3387 * NULL if no ring-0 mapping. 3385 3388 * @param paPages Where to store the addresses of the pages. Optional. … … 3646 3649 * Reports a bad context, currenctly that means EFLAGS.AC is 0 instead of 1. 3647 3650 * 3648 * @param p Session The session of the caller.3651 * @param pDevExt The device extension. 3649 3652 * @param pszFile The source file where the caller detected the bad 3650 3653 * context. … … 3869 3872 * 3870 3873 * @returns VBox status code. 3871 * @param fIsSmxModeAmbiguous Where to writewhether the SMX mode causes3874 * @param pfIsSmxModeAmbiguous Where to return whether the SMX mode causes 3872 3875 * ambiguity that makes us unsure whether we 3873 3876 * really can use VT-x or not. … … 3876 3879 * The caller is also expected to check that the CPU is an Intel (or 3877 3880 * VIA) CPU -and- that it supports VT-x. Otherwise, this function 3878 * might throw a #GP fault as it tries to read/write MSRs that may not3881 * might throw a \#GP fault as it tries to read/write MSRs that may not 3879 3882 * be present! 3880 3883 */ … … 5232 5235 * @returns IPRT status code. 5233 5236 * @param pDevExt Device globals. 5234 * @param pSession Session data. 5235 * @param pVMMR0 VMMR0 image handle. 5237 * @param pvVMMR0 VMMR0 image handle. 5236 5238 * @param pvVMMR0EntryFast VMMR0EntryFast address. 5237 5239 * @param pvVMMR0EntryEx VMMR0EntryEx address. -
trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
r57358 r58340 4242 4242 * other error code on internal error. 4243 4243 * 4244 * @param p This Pointer to the grant service instance data.4244 * @param pDevExt The device instance data. 4245 4245 * @param enmCurState The current state. 4246 4246 * @param enmNewState The new state we're waiting for it to enter. -
trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h
r57378 r58340 1442 1442 } Modify; 1443 1443 1444 /** Reserve space for the future. .*/1444 /** Reserve space for the future. */ 1445 1445 uint64_t auPadding[3]; 1446 1446 } uArgs; -
trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h
r57378 r58340 231 231 #endif 232 232 233 #ifdef DOXYGEN_RUNNING 234 # define SUPDRV_WITH_MSR_PROBER 235 # define SUPDRV_WITHOUT_MSR_PROBER 236 #endif 237 233 238 #if 1 234 /** Use a dedicated kernel thread to service TSC-delta measurement requests. 235 * @todo Test on servers with many CPUs and sockets. */ 236 #define SUPDRV_USE_TSC_DELTA_THREAD 237 #endif 239 /** @def SUPDRV_USE_TSC_DELTA_THREAD 240 * Use a dedicated kernel thread to service TSC-delta measurement requests. 241 * @todo Test on servers with many CPUs and sockets. */ 242 # define SUPDRV_USE_TSC_DELTA_THREAD 243 #endif 244 238 245 239 246 /******************************************************************************* -
trunk/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp
r57358 r58340 249 249 * @param uVtgHdrAddr The address where the header is actually 250 250 * loaded. 251 * @param cbVtgObj The alleged size of the header.252 251 * @param pbImage The image base, if available. 253 252 * @param cbImage The image size, if available. … … 868 867 * 869 868 * @returns VBox status code. 870 * @param p szName The driver name.869 * @param pDevExt The device instance data. 871 870 * @param pVtgHdr The VTG object header. 872 871 * @param pImage The image if applicable. … … 1103 1102 * 1104 1103 * @param pSession The support driver session handle. 1105 * @param pVtgHdr The VTG header.1106 1104 */ 1107 1105 SUPR0DECL(void) SUPR0TracerDeregisterDrv(PSUPDRVSESSION pSession) -
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r57358 r58340 1791 1791 * 1792 1792 * @param pThis The string table structure. 1793 * @param paProbLocs The probe location array. 1794 * @param cProbLocs The number of probe locations. 1793 * @param paProbeLocs32 The probe location array, 32-bit type variant. 1794 * @param paProbeLocs64 The probe location array, 64-bit type variant. 1795 * @param cProbeLocs The number of elements in the array. 1796 * @param f32Bit Set if @a paProbeLocs32 should be used, when 1797 * clear use @a paProbeLocs64. 1795 1798 */ 1796 1799 static void supr3TracerDestroyStrTab(PSUPDRVTRACERSTRTAB pThis, PVTGPROBELOC32 paProbeLocs32, PVTGPROBELOC64 paProbeLocs64, … … 1819 1822 * 1820 1823 * @returns Pointer to a string table structure. NULL on failure. 1821 * @param paProbLocs The probe location array. 1822 * @param cProbLocs The number of elements in the array. 1823 * @param cBits 1824 * @param paProbeLocs32 The probe location array, 32-bit type variant. 1825 * @param paProbeLocs64 The probe location array, 64-bit type variant. 1826 * @param cProbeLocs The number of elements in the array. 1827 * @param offDelta Relocation offset for the string pointers. 1828 * @param f32Bit Set if @a paProbeLocs32 should be used, when 1829 * clear use @a paProbeLocs64. 1824 1830 */ 1825 1831 static PSUPDRVTRACERSTRTAB supr3TracerCreateStrTab(PVTGPROBELOC32 paProbeLocs32, -
trunk/src/VBox/HostDrivers/Support/SUPLibLdr.cpp
r57378 r58340 350 350 * 351 351 * @returns VBox status code. 352 * @param pszFilename Name of the VMMR0 image file 352 * @param pszFilename Name of the VMMR0 image file 353 * @param pszModule The modulen name. 354 * @param pszSrvReqHandler The service request handler symbol name, 355 * optional. 356 * @param pErrInfo Where to store detailed error info. Optional. 357 * @param ppvImageBase Where to return the load address. 353 358 */ 354 359 static int supLoadModule(const char *pszFilename, const char *pszModule, const char *pszSrvReqHandler, -
trunk/src/VBox/HostDrivers/Support/SUPR0IdcClientStubs.c
r57358 r58340 40 40 * 41 41 * @param pHandle The IDC handle. 42 * @param ppfn Where to return the address of the symbol. 42 43 * @param pszName The name of the symbol. 43 44 */ … … 66 67 * @returns Pointer to the symbol on success, NULL on failure. 67 68 * 68 * @param pHandle The IDC handle. 69 * @param pSession The IDC session. 70 * @param ppfn Where to return the address of the symbol. 69 71 * @param pszName The name of the symbol. 70 72 */ -
trunk/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp
r58132 r58340 845 845 846 846 /** 847 * Returns the full path to the executable .847 * Returns the full path to the executable in g_szSupLibHardenedExePath. 848 848 * 849 849 * @returns IPRT status code. 850 * @param pszPath Where to store it.851 * @param cchPath How big that buffer is.852 850 */ 853 851 static void supR3HardenedGetFullExePath(void) -
trunk/src/VBox/HostDrivers/Support/SUPSvc.cpp
r57358 r58340 305 305 * 306 306 * @param pszFormat The log string. No trailing newline. 307 * @param ...Format arguments.307 * @param va Format arguments. 308 308 * 309 309 * @todo This should later be replaced by the release logger and callback destination(s). -
trunk/src/VBox/HostDrivers/Support/SUPSvcInternal.h
r56293 r58340 54 54 * Logs the message to the appropriate system log. 55 55 * 56 * @param ps MsgThe log string.56 * @param pszMsg The log string. 57 57 */ 58 58 void supSvcOsLogErrorStr(const char *pszMsg); -
trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp
r58277 r58340 849 849 * 850 850 * @returns VBox status code, see supdrvIDC. 851 * @param iReq The request code.851 * @param uReq The request code. 852 852 * @param pReq The request. 853 853 */ -
trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c
r57358 r58340 75 75 static d_open_t VBoxDrvFreeBSDOpenUsr; 76 76 static d_open_t VBoxDrvFreeBSDOpenSys; 77 static void VBoxDrvFreeBSDDtr(void *p Data);77 static void VBoxDrvFreeBSDDtr(void *pvData); 78 78 static d_ioctl_t VBoxDrvFreeBSDIOCtl; 79 79 static int VBoxDrvFreeBSDIOCtlSlow(PSUPDRVSESSION pSession, u_long ulCmd, caddr_t pvData, struct thread *pTd); … … 225 225 * @returns 0 on success, errno on failure. 226 226 * EBUSY if the device is used by someone else. 227 * @param pDev The device node. 228 * @param fOpen The open flags. 229 * @param pTd The thread. 230 * @param iDevType ??? 231 */ 232 static int vboxdrvFreeBSDOpenCommon(struct cdev *pDev, int fOpen, int iDevtype, struct thread *pTd, bool fUnrestricted) 227 * @param pDev The device node. 228 * @param fOpen The open flags. 229 * @param iDevType Some device type thing we don't use. 230 * @param pTd The thread. 231 * @param fUnrestricted Set if opening /dev/vboxdrv, clear if /dev/vboxdrvu. 232 */ 233 static int vboxdrvFreeBSDOpenCommon(struct cdev *pDev, int fOpen, int iDevType, struct thread *pTd, bool fUnrestricted) 233 234 { 234 235 PSUPDRVSESSION pSession; … … 253 254 pSession->Uid = stuff; 254 255 pSession->Gid = stuff; */ 255 devfs_set_cdevpriv(pSession, VBoxDrvFreeBSDDtr);256 rc = devfs_set_cdevpriv(pSession, vboxdrvFreeBSDDtr); Assert(rc == 0); 256 257 Log(("VBoxDrvFreeBSDOpen: pSession=%p\n", pSession)); 257 258 ASMAtomicIncU32(&g_cUsers); … … 264 265 265 266 /** For vboxdrv. */ 266 static int VBoxDrvFreeBSDOpenSys(struct cdev *pDev, int fOpen, int iDev type, struct thread *pTd)267 { 268 return vboxdrvFreeBSDOpenCommon(pDev, fOpen, iDev type, pTd, true);267 static int VBoxDrvFreeBSDOpenSys(struct cdev *pDev, int fOpen, int iDevType, struct thread *pTd) 268 { 269 return vboxdrvFreeBSDOpenCommon(pDev, fOpen, iDevType, pTd, true); 269 270 } 270 271 271 272 272 273 /** For vboxdrvu. */ 273 static int VBoxDrvFreeBSDOpenUsr(struct cdev *pDev, int fOpen, int iDev type, struct thread *pTd)274 { 275 return vboxdrvFreeBSDOpenCommon(pDev, fOpen, iDev type, pTd, false);276 } 277 278 279 /** 280 * Close a file device previously opened by VBoxDrvFreeBSDOpen 274 static int VBoxDrvFreeBSDOpenUsr(struct cdev *pDev, int fOpen, int iDevType, struct thread *pTd) 275 { 276 return vboxdrvFreeBSDOpenCommon(pDev, fOpen, iDevType, pTd, false); 277 } 278 279 280 /** 281 * Close a file device previously opened by VBoxDrvFreeBSDOpen. 281 282 * 282 283 * @returns 0 on success. 283 * @param pDev The device. 284 * @param fFile The file descriptor flags. 285 * @param DevType The device type (CHR. 286 * @param pTd The calling thread. 287 */ 288 static void VBoxDrvFreeBSDDtr(void *pData) 289 { 290 PSUPDRVSESSION pSession = pData; 291 Log(("VBoxDrvFreeBSDDtr: pSession=%p\n", pSession)); 284 * @param pvData The session being closed. 285 */ 286 static void vboxdrvFreeBSDDtr(void *pvData) 287 { 288 PSUPDRVSESSION pSession = pvData; 289 Log(("vboxdrvFreeBSDDtr: pSession=%p\n", pSession)); 292 290 293 291 /* … … 469 467 * 470 468 * @returns VBox status code, see supdrvIDC. 471 * @param iReq The request code.469 * @param uReq The request code. 472 470 * @param pReq The request. 473 471 */ -
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r57840 r58340 604 604 * Suspend callback. 605 605 * @param pDev Pointer to the platform device. 606 * @param State message type, see Documentation/power/devices.txt. 607 */ 608 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30) 606 * @param State Message type, see Documentation/power/devices.txt. 607 * Ignored. 608 */ 609 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30) && !defined(DOXYGEN_RUNNING) 609 610 static int VBoxDrvSuspend(struct device *pDev) 610 611 # else … … 640 641 * @param ulArg The argument specified to ioctl(). 641 642 */ 642 #if def HAVE_UNLOCKED_IOCTL643 #if defined(HAVE_UNLOCKED_IOCTL) || defined(DOXYGEN_RUNNING) 643 644 static long VBoxDrvLinuxIOCtl(struct file *pFilp, unsigned int uCmd, unsigned long ulArg) 644 645 #else … … 811 812 * 812 813 * @returns VBox status code, see supdrvIDC. 813 * @param iReq The request code.814 * @param uReq The request code. 814 815 * @param pReq The request. 815 816 */ -
trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c
r57358 r58340 665 665 * @param Dev Device number 666 666 * @param Cmd Operation identifier 667 * @param pArg 667 * @param pArgs Arguments from user to driver 668 668 * @param Mode Information bitfield (read/write, address space etc.) 669 669 * @param pCred User credentials … … 745 745 * 746 746 * @param pSession The session. 747 * @param CmdThe IOCtl command.747 * @param iCmd The IOCtl command. 748 748 * @param Mode Information bitfield (for specifying ownership of data) 749 749 * @param iArg User space address of the request buffer. … … 849 849 * 850 850 * @returns VBox status code, see supdrvIDC. 851 * @param iReq The request code.851 * @param uReq The request code. 852 852 * @param pReq The request. 853 853 */ -
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r57501 r58340 1005 1005 * @param pvOutput The output buffer as specfied by the user. 1006 1006 * @param cbOutput The size of the output buffer. 1007 * @param u Function The function.1007 * @param uCmd The I/O command/function being invoked. 1008 1008 * @param pIoStatus Where to return the status of the operation. 1009 1009 * @param pDevObj The device object.. … … 1259 1259 * @returns NT status code. 1260 1260 * 1261 * @param pDev Obj Device object.1261 * @param pDevExt Device extension. 1262 1262 * @param pSession The session. 1263 1263 * @param pIrp Request packet.
Note:
See TracChangeset
for help on using the changeset viewer.