浏览代码

tty: Document required behavior of tty driver close()

If the tty driver open() fails, the tty driver close() is still
called during the resultant tty release.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Peter Hurley 12 年之前
父节点
当前提交
7be88b4ccb
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/linux/tty_driver.h

+ 1 - 0
include/linux/tty_driver.h

@@ -40,6 +40,7 @@
  * void (*close)(struct tty_struct * tty, struct file * filp);
  *
  * 	This routine is called when a particular tty device is closed.
+ *	Note: called even if the corresponding open() failed.
  *
  *	Required method.
  *