Changeset 71198 in vbox for trunk/src/VBox/HostDrivers/Support/solaris
- Timestamp:
- Mar 5, 2018 10:59:17 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c
r69500 r71198 664 664 * 665 665 * @param Dev Device number 666 * @param CmdOperation identifier666 * @param iCmd Operation identifier 667 667 * @param pArgs Arguments from user to driver 668 668 * @param Mode Information bitfield (read/write, address space etc.) … … 672 672 * @return corresponding solaris error code. 673 673 */ 674 static int VBoxDrvSolarisIOCtl(dev_t Dev, int Cmd, intptr_t pArgs, int Mode, cred_t *pCred, int *pVal)674 static int VBoxDrvSolarisIOCtl(dev_t Dev, int iCmd, intptr_t pArgs, int Mode, cred_t *pCred, int *pVal) 675 675 { 676 676 #ifndef USE_SESSION_HASH … … 708 708 { 709 709 LogRel(("VBoxSupDrvIOCtl: WHAT?!? pSession == NULL! This must be a mistake... pid=%d iCmd=%#x Dev=%#x\n", 710 (int)Process, Cmd, (int)Dev));710 (int)Process, iCmd, (int)Dev)); 711 711 return EINVAL; 712 712 } … … 717 717 * the session and iCmd, and only returns a VBox status code. 718 718 */ 719 if ( ( Cmd == SUP_IOCTL_FAST_DO_RAW_RUN 720 || Cmd == SUP_IOCTL_FAST_DO_HM_RUN 721 || Cmd == SUP_IOCTL_FAST_DO_NOP) 719 AssertCompile((SUP_IOCTL_FAST_DO_FIRST & 0xff) == (SUP_IOCTL_FLAG | 64)); 720 if ( (unsigned)(iCmd - SUP_IOCTL_FAST_DO_FIRST) < (unsigned)32 722 721 && pSession->fUnrestricted) 723 722 { 724 *pVal = supdrvIOCtlFast( Cmd, pArgs, &g_DevExt, pSession);723 *pVal = supdrvIOCtlFast(iCmd - SUP_IOCTL_FAST_DO_FIRST, pArgs, &g_DevExt, pSession); 725 724 return 0; 726 725 } 727 726 728 return VBoxDrvSolarisIOCtlSlow(pSession, Cmd, Mode, pArgs);727 return VBoxDrvSolarisIOCtlSlow(pSession, iCmd, Mode, pArgs); 729 728 } 730 729
Note:
See TracChangeset
for help on using the changeset viewer.