[CRIU] [PATCH 3/2] tty:add comment explaining indices

Ruslan Kuprieiev kupruser at gmail.com
Fri Dec 19 08:45:36 PST 2014


Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
 tty.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tty.c b/tty.c
index 7b184c7..4f0b917 100644
--- a/tty.c
+++ b/tty.c
@@ -116,6 +116,12 @@ static LIST_HEAD(all_ttys);
  */
 
 #define MAX_TTYS	1024
+
+/*
+ * Custom indices should be odd numbers just in case if we
+ * need evens for pair numbering someday.
+ */
+
 #define MAX_PTY_INDEX	1000
 #define CONSOLE_INDEX	1002
 #define VT_INDEX	1004
-- 
2.1.0



More information about the CRIU mailing list