]> git.baikalelectronics.ru Git - kernel.git/commit
n_tty: Split n_tty_chars_in_buffer() for reader-only interface
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 13:14:18 +0000 (09:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:43:00 +0000 (16:43 -0700)
commitc28e53aa968487e0e9780500c304782fa49b39fb
tree5ea4e042a5883a7508b7ad044d5c82208c862dc7
parent703533ce92cfc26cfe8ae52bd696c5516847034a
n_tty: Split n_tty_chars_in_buffer() for reader-only interface

N_TTY .chars_in_buffer() method requires serialized access if
the current thread is not the single-consumer, n_tty_read().

Separate the internal interface; prepare for lockless read-side.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c