Re: procfs-problem with linux 2.4.24

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

 



On Tuesday 08 February 2005 04:34, Joerg Hoh wrote:
> On Mon, Feb 07, 2005 at 08:09:59PM -0500, Jim Bauer wrote:
> > 
> > 
> > You never set 'start'.  It is a pointer into 'page' corresponding to the
> > offset, 
> 
> Hm, according to procfs-guide (linux 2.4.24):
> 
> 'The parameter start doesn't seem to be used anywhere in the kernel.'
> 
> So what's the right use of that paramter?

I just looked and it is used.
See fs/proc/generic.c:proc_file_read()
that is the routine that'll call your read handler.

However if you never set it, it defaults
to being the same as 'page + offset'.

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