Re: Missing standart /proc entries after adding new ones

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

 



On Sunday 06 February 2005 12:16 am, M.Baris Demiray wrote:
> Hi,
> i'm playing with procfs API and added a few lines into kernel/fork.c
> to show the latest process' pid in the /proc/newbie/last_pid entry
> as an example (modifications are at the end).
>

Hi Baris,

A better solution for what you need to do would be to export a symbol from 
kernel/fork.c and then write a module to create the /proc files and print 
that symbol. 


tavi




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