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

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

 



Hello.

Thank you for your opinion.

Mulyadi Santosa wrote:
> But, in case of /proc/self, we must point to distinct ID, no matter it 
> is created using CLONE_THREAD or not. So, task_struct->pid is the 
> answer IMHO.
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?

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?

--
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