lkml.org 
[lkml]   [2014]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next 22/27] tty: Document hangup call tree
Date
Add at-a-glance call tree for the various hangup methods.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
---
drivers/tty/tty_io.c | 13 +++++++++++++
1 file changed, 13 insertions(+)

diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 25e85b0..8effd44 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -664,6 +664,19 @@ static int tty_signal_session_leader(struct tty_struct *tty, int exit_session)
* termios_rwsem resetting termios data
* tasklist_lock to walk task list for hangup event
* ->siglock to protect ->signal/->sighand
+ *
+ * Call tree:
+ * tty_hangup() => do_tty_hangup() -+
+ * |
+ * tty_vhangup() ---------+ |
+ * tty_vhangup_self() ----+ |
+ * tty_vhangup_session() -+---------+
+ * |
+ * __tty_hangup() -> __tty_hangup_standard() -+
+ * |
+ * tty_vhangup_slave() ----> __tty_hangup() -> __tty_vhangup_slave() ---+
+ * |
+ * __tty_hangup_common()
*/
static void __tty_hangup_common(struct tty_struct *tty, int exit_session)
{
--
2.1.1


\
 
 \ /
  Last update: 2014-10-16 23:41    [W:0.259 / U:1.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site