Called when a ioctl is request to the tty
tty.ioctl
arg
the ioctl argument
cmd
the ioctl command
name
the file name