Called when a tty is opened
tty.open
file_name
the file name
inode_flags
the inode flags
file_mode
the file mode
inode_number
the inode number
file_flags
the file flags
inode_state
the inode state