here is a ego-breaker question
how can you resolve the ttyname at the kernel level.
I looked into ty struct and tty_driver struct but they only contain the tty major name such as tty, pty etc...
what I am trying to get is the full path of the tty name as /dev/pts0.
do you have any idea how to go about getting this info.
thanks
how can you resolve the ttyname at the kernel level.
I looked into ty struct and tty_driver struct but they only contain the tty major name such as tty, pty etc...
what I am trying to get is the full path of the tty name as /dev/pts0.
do you have any idea how to go about getting this info.
thanks