Search notes:
fs/proc/proc_tty.c
This file handles
/proc/tty
Index