Re: problem with tsk->mm in exit.c

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

 



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/


[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