commit | a19d0c6a9166fe3d8bb1575b64f28590206148d9 | [log] [tgz] |
---|---|---|
author | Peter Hurley <peter@hurleysoftware.com> | Sat Jun 15 09:14:18 2013 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jul 23 16:43:00 2013 -0700 |
tree | 5ea4e042a5883a7508b7ad044d5c82208c862dc7 | |
parent | 32f13521ca68bc624ff6effc77f308a52b038bf0 [diff] |
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>