Re: proc filesystem souce code

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

 



Hi,  On 2/28/06, Xiangfei Jia <xjianz@xxxxxxxxx> wrote:>>> On 2/27/06, Parag N(पराग़) <panemade@xxxxxxxxx > wrote:> >> > >  I want to study how proc filesytem reads information from the kernel.> Like> > > I want to find out where are the souce codes for  /proc/meminfo,> > > /proc/cpuinfo, /proc/devices. Can I get some help where I can locate the> > > souce code in the 2.6 kernel.> >   check function meminfo_read_proc in  fs/proc/proc_misc.c your source> > code's directory.> > Regards,> > Parag.> >>>  I looked at all the proc function which implements all the various proc> filesystem under the /proc directory. Like "/proc/cpuinfo" is linked with> "proc_cpuinfo_operations" function and "/proc/diskstats" is linked with> "proc_diskstats_operations" fucntion. All these proc functions are> implemented using "seq_open", "seq_read", "seq_lseek" fucntions defined in> "/fs/seq_file.c". I cann't quite understand the purpose of using the> "seq_file.c" and how it works with the various proc functions.  Can I get> some further explanation of all these?? OR where can I get some> documentation to get a better understanding???> You can first go through some information regarding /proc filesystemand examples athttp://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlproc.htmlhttp://www.linuxjournal.com/article/8381http://www.kernelnewbies.org/documents/kdoc/procfs-guide/lkprocfsguide.htmlRegards,Parag.��������!���W��v������ޗ��{��f����;��ޖw�n'�������Y�����


[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