--- Lukas Ruf <ruf@xxxxxxxxx> escreveu: > > 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? This is the question. I would like to add an entry in /proc/pid, something like /proc/pid/smaps. The pid here is the process id number. I know how to do it changing the kernel code directly, but I would like to port this implementation as module. How can I do it? > 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/ > > ===== ************************************************ Conhecimento vem do seu instrutor; Sabedoria vem do seu interior. (Bruce Lee) ************************************************ __________________________________________________ Converse com seus amigos em tempo real com o Yahoo! Messenger http://br.download.yahoo.com/messenger/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/