> Mauricio Lin <mauriciolin2000@xxxxxxxxxxxx> [2004-12-21 15:13]: > > I have to know in advance all process that are running. I mean I > have to know the all pids under /proc. I want to add an entry as > /proc/pid/smaps through module. This entry shows some information > for each running process. > how can you know all processes in advance? You can find a snapshot of all PIDs by listing the pids in the /proc -- but they change already after this process is finished? Do you mean: 'man 2 getpid()' ? wbr, Lukas -- Lukas Ruf | Wanna know anything about raw | <http://www.lpr.ch> | IP? -> <http://www.rawip.org> | eMail Style Guide: <http://www.rawip.org/style.html>| -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/