First post to SO, so I\'ll try to make the question right.
I\'m making a simple Linux kernel module with the goal of echoing data back to the TTY shell from where th
use tty = get_current_tty(); instead of tty = current->signal->tty;
tty = get_current_tty();
tty = current->signal->tty;
that's it
you need to lock the tty before accessing it and get_current_tty does it internally
get_current_tty
NOTE: get_current_tty is under EXPORT_SYMBOL_GPL, hence your module or code
EXPORT_SYMBOL_GPL