Re: current tty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

  


2013/5/8 Jun Hu <jhu_com@xxxxxxx>
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@xxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux