Re: How does create an entry under /proc/pid using module?

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

 



 --- 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?
> 
> 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)             
************************************************


	
	
		
_______________________________________________________ 
Yahoo! Acesso Grátis - Instale o discador do Yahoo! agora. http://br.acesso.yahoo.com/ - Internet rápida e grátis

--
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