sounak chakraborty wrote: > i want to get the information when a thread gets exited from the > system .so i wrote some printk at the beginning of do_exit in > kernel/exit.c.like of tsk->pid. Isn't do_exit() the implementation of the exit(2) system call? If so, then your code only runs when a user-space thread calls exit(). -- Francis Litterio franl <at> world . std . com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/