Re: [2.4] proc_self_readlink()/proc_self_follow_link()

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

 



Hi..

> Oops. Then, 2.6 kernels should use
> current->pid instead of current->tgid
> in proc_self_readlink()/proc_self_follow_link()
> to point to distinct ID?

Tetsuo, I can't provide further comment because my knowledge is limited 
too. Somehow, I don't know the real reason why the kernel developers 
choose to do that way. Perhaps, CC-ing your question to LKML will pull 
better explanation?

> current->pid should be used for /proc/<pid> directory
> and
> current->tgid should be used for /proc/<pid>/task/<tid> directory
> for 2.6 kernels?

Hey, I just know that /proc/<pid>/task/<tid> exists :) stupid 
me...thanks for the info! I'll take a look on it...

regards

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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