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/