tty: Define ASYNC_ replacement bits
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Apr 2016 00:53:20 +0000 (17:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 16:26:55 +0000 (09:26 -0700)
commite4d38f334ad24f80229a8ebab26950de8e8f34d7
tree700de742e06c9ef1df41d6d79b59a91d095abb4d
parent97ef38b8210d7459d4cb51668cdf3983772ac6b7
tty: Define ASYNC_ replacement bits

Prepare for relocating kernel private state bits out of tty_port::flags
field; tty_port::flags field is not atomic and can become corrupted
by concurrent updates. It also suffers from the complication of sharing
in a userspace-visible field which must be masked.

Define new tty_port::iflags field and new, substitute bit definitions
for the former ASYNC_* flags.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/tty.h
include/uapi/linux/tty_flags.h