Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: Clarify documentation of ->write()

The tty driver write method is different to the usual fops device write
methods as the buffer is already in kernel space. Clarify the docs since
someone writing a driver made that mistake.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Alan and committed by
Linus Torvalds
6309ed7c 3972b7f6

+3 -1
+3 -1
Documentation/tty.txt
··· 108 108 structure: 109 109 110 110 write() Write a block of characters to the tty device. 111 - Returns the number of characters accepted. 111 + Returns the number of characters accepted. The 112 + character buffer passed to this method is already 113 + in kernel space. 112 114 113 115 put_char() Queues a character for writing to the tty device. 114 116 If there is no room in the queue, the character is