diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2013-01-30 12:43:51 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-02-04 15:40:28 -0800 |
commit | 7be88b4ccb62737abe4bf27f9e66e224a70a12c4 (patch) | |
tree | 874765b5b44d8fcb56d15e07c8d2610cb5b7061d /include/linux/tty_driver.h | |
parent | 699390354da6c258b65bf8fa79cfd5feaede50b6 (diff) | |
download | linux-7be88b4ccb62737abe4bf27f9e66e224a70a12c4.tar.gz linux-7be88b4ccb62737abe4bf27f9e66e224a70a12c4.tar.bz2 linux-7be88b4ccb62737abe4bf27f9e66e224a70a12c4.zip |
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>
Diffstat (limited to 'include/linux/tty_driver.h')
-rw-r--r-- | include/linux/tty_driver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index dd976cfb6131..756a60989294 100644 --- a/include/linux/tty_driver.h +++ b/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. * |