Hi... On Mon, May 24, 2010 at 16:10, Sumit Sharma <sumsha18@xxxxxxxxx> wrote: > Thanks for your inputs. You are righ that get_pid() just increments one atomic counter, so this should not be the culprit, but could you please let me know if tast_pid(current) might cause the process to become invisible? Please don't do top posting... About task_pid (you mean this right? not tast_pid(), I see nothing suspicious there: static inline struct pid *task_pid(struct task_struct *task) { return task->pids[PIDTYPE_PID].pid; } (quoted from http://lxr.linux.no/linux+v2.6.27.46/include/linux/sched.h#L1353) -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ