Changeset 68565 in vbox for trunk/include
- Timestamp:
- Aug 31, 2017 12:10:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuest.h
r68561 r68565 139 139 /* No automatic buffering, size limited to 255 bytes => use VBGLBIGREQ for everything. */ 140 140 # include <sys/ioccom.h> 141 # define SUP_CTL_CODE_SIZE(Function, Size) _IOWRN('V', (Function), sizeof(SUPREQHDR))142 # define SUP_CTL_CODE_BIG(Function) _IOWRN('V', (Function), sizeof(SUPREQHDR))143 # define SUP_CTL_CODE_FAST(Function) _IO( 'V', (Function))141 # define VBGL_IOCTL_CODE_SIZE(Function, Size) _IOWRN('V', (Function), sizeof(VBGLREQHDR)) 142 # define VBGL_IOCTL_CODE_BIG(Function) _IOWRN('V', (Function), sizeof(VBGLREQHDR)) 143 # define VBGL_IOCTL_CODE_FAST(Function) _IO( 'F', (Function)) 144 144 # define VBGL_IOCTL_CODE_STRIPPED(a_uIOCtl) ((a_uIOCtl) & ~VBGL_IOCTL_FLAG_BIT_MASK) 145 # define VBGL_IOCTL_IS_FAST(a_uIOCtl) ( ((a_uIOCtl) & 0x0000ff00) == ('F' << 8) ) 145 146 146 147 #elif defined(RT_OS_LINUX) … … 149 150 # define VBGL_IOCTL_CODE_SIZE(Function, Size) _IOC(_IOC_READ | _IOC_WRITE, 'V', (Function), (Size)) 150 151 # define VBGL_IOCTL_CODE_BIG(Function) _IO('V', (Function)) 151 # define VBGL_IOCTL_CODE_FAST(Function) _IO(' V', (Function))152 # define VBGL_IOCTL_CODE_FAST(Function) _IO('F', (Function)) 152 153 # define VBGL_IOCTL_CODE_STRIPPED(a_uIOCtl) (_IOC_NR((a_uIOCtl)) & ~VBGL_IOCTL_FLAG_BIT_MASK) 153 154 # define VBOXGUEST_USER_DEVICE_NAME "/dev/vboxuser" … … 166 167 # include <sys/ioccom.h> 167 168 # define VBGL_IOCTL_CODE_SIZE(Function, Size) _IOC(IOC_INOUT, 'V', (Function), (Size)) 168 # define VBGL_IOCTL_CODE_BIG(Function) _IO('V', (Function) | SUP_IOCTL_FLAG)169 # define VBGL_IOCTL_CODE_FAST(Function) _IO(' V', (Function))169 # define VBGL_IOCTL_CODE_BIG(Function) _IO('V', (Function)) 170 # define VBGL_IOCTL_CODE_FAST(Function) _IO('F', (Function)) 170 171 # define VBGL_IOCTL_CODE_STRIPPED(a_uIOCtl) ((a_uIOCtl) & ~(_IOC(0,0,0,IOCPARM_MASK) | VBGL_IOCTL_FLAG_BIT_MASK)) 171 172 #endif … … 1050 1051 * @param pvSession The session. 1051 1052 * @param uReq The request code. 1052 * @param pReq 1053 * @param pReqHdr The request. 1053 1054 * @param cbReq The request size. 1054 1055 */ 1055 int VBOXCALL VBoxGuestIDC(void *pvSession, uintptr_t uReq, PVBGLREQHDR pReq , size_t cbReq);1056 int VBOXCALL VBoxGuestIDC(void *pvSession, uintptr_t uReq, PVBGLREQHDR pReqHdr, size_t cbReq); 1056 1057 RT_C_DECLS_END 1057 1058 #endif
Note:
See TracChangeset
for help on using the changeset viewer.