It is not the answer I wanted , I am saking in term of coding .



2013/5/8 Jun Hu <jhu_...@163.com>

> you can get it by "tty" command, like the following:
>
> junwork:/proc/self/task/1874 # tty
> /dev/pts/0
>
>
> -
> ----Original Message-----
> --
> ---------------------------------------------------------
> Jun Hu
>
> DSE  In Suse China.
> ----------------------------------------------------------
>
>
>
> To: kernelnewbies@kernelnewbies.org
> Subject: current tty
> Date: Wed, 8 May 2013 12:21:32 +0800
>
> Hi:
>
>    As  I know .the /dev/tty is the current task's tty , which is stored
> to current->tty ,
>    My question is when does this value is assgined to current->tty ?
>
>
> Thanks!
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to