Ioctl compatibility for TIOCMIWAIT and TIOCGICOUNT
PATCH 1/1 Ioctl compatibility for TIOCMIWAIT and TIOCGICOUNT
This patch lets us use TIOCMIWAIT and TIOCGICOUNT from a 32-bit process on a 64-bit processor. TIOCMIWAIT uses the argument as a bitmap of things to wait for. The argument for TIOCGICOUNT points to a struct serial_icounter_struct, which only contains ints and arrays of int.
Signed-off-by Paul Mackerras <[email protected]>
include/linux/compat_ioctl.h +2 -0
@@ -25,6 +25,8 @@ COMPATIBLE_IOCTL(TIOCLINUX) COMPATIBLE_IOCTL(TIOCSBRK) COMPATIBLE_IOCTL(TIOCCBRK) +ULONG_IOCTL(TIOCMIWAIT) +COMPATIBLE_IOCTL(TIOCGICOUNT) /* Little t */ COMPATIBLE_IOCTL(TIOCGETD) COMPATIBLE_IOCTL(TIOCSETD)