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,
> 
> > Mauricio Lin <mauriciolin2000@xxxxxxxxxxxx>
> [2004-12-21 14:38]:
> >
> > Does anyone know how can I create a new entry in
> /proc/pid_number
> > through procfs module?
> >
> 
> create_proc_entry()?
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.

> 
> > I would like to add process related entry in
> /proc/pid_number but i
> > wonder what is the best way to do that. Any idea?
> 
> What kind of process related data?  Have you checked
> the discussions
> on procfs vs. sysfs?

I will take a look about this discussion.

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

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