Changeset 6424 in vbox for trunk/include/VBox
- Timestamp:
- Jan 21, 2008 6:30:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuest.h
r6422 r6424 984 984 # define VBOXGUEST_IOCTL_CATEGORY_FAST 0xc3 /**< Also defined in VBoxGuestA-os2.asm. */ 985 985 # define VBOXGUEST_IOCTL_CODE_FAST(Function) ((unsigned char)(Function)) 986 # define VBOXGUEST_IOCTL_STRIP_SIZE(Function) (Function) 986 987 987 988 #elif defined(RT_OS_LINUX) … … 992 993 # define VBOXGUEST_IOCTL_CODE(Function, Size) _IOC(_IOC_READ|_IOC_WRITE, 'V', (Function) | VBOXGUEST_IOCTL_FLAG, (Size)) 993 994 # define VBOXGUEST_IOCTL_CODE_FAST(Function) _IO( 'V', (Function) | VBOXGUEST_IOCTL_FLAG) 995 # define VBOXGUEST_IOCTL_STRIP_SIZE(Function) ((Function) - _IOC_SIZE((Function))) 994 996 995 997 /** @todo r=bird: Please remove. See discussion in xTracker and elsewhere; VBOXGUEST_IOCTL_STRIP_SIZE is all we need here and it must be defined everywhere. */ … … 1002 1004 # define VBOXGUEST_IOCTL_CODE(Function, Size) _IOWRN('V', (Function) | VBOXGUEST_IOCTL_FLAG, sizeof(VBGLBIGREQ)) 1003 1005 # define VBOXGUEST_IOCTL_CODE_FAST(Function) _IO( 'V', (Function) | VBOXGUEST_IOCTL_FLAG) 1006 # define VBOXGUEST_IOCTL_STRIP_SIZE(Function) (Function) 1004 1007 #else 1005 1008 # define VBOXGUEST_IOCTL_CODE(Function, Size) _IOWRN('V', (Function) | VBOXGUEST_IOCTL_FLAG, (Size)) 1006 1009 # define VBOXGUEST_IOCTL_CODE_FAST(Function) _IO( 'V', (Function) | VBOXGUEST_IOCTL_FLAG) 1010 # define VBOXGUEST_IOCTL_STRIP_SIZE(Function) ((Function) & ~(IOCPARM_MASK << 16)) 1007 1011 1008 1012 /** @todo r=bird: Please remove. See discussion in xTracker and elsewhere; VBOXGUEST_IOCTL_STRIP_SIZE is all we need here and it must be defined everywhere. */ … … 1015 1019 # define VBOXGUEST_IOCTL_CODE(Function, Size) _IORW('V', (Function) | VBOXGUEST_IOCTL_FLAG, (Size)) 1016 1020 # define VBOXGUEST_IOCTL_CODE_FAST(Function) _IO( 'V', (Function) | VBOXGUEST_IOCTL_FLAG) 1021 # define VBOXGUEST_IOCTL_STRIP_SIZE(Function) ((Function) - IOCPARM_LEN((Function))) 1017 1022 1018 1023 #else
Note:
See TracChangeset
for help on using the changeset viewer.