From mboxrd@z Thu Jan 1 00:00:00 1970 From: pauldaviesc@gmail.com (Paul Davies C) Date: Fri, 15 Nov 2013 21:54:11 +0530 Subject: Can mm_struct of a process be null? Message-ID: <52864AAB.1080003@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi, I happen to find this code snippet in the kernel source : **/*struct mm_struct *mm=current->mm**;** ** /* some other code */ ** if(mm){ /*<==Why is **this here? */** ** /*read the contents by locking*/** ** } */The/if /checks whether the mm_struct of the current process is NULL or not. That means the mm_struct of a process can become NULL. How can that happen? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131115/90060719/attachment.html