Re: procfs-problem with linux 2.4.24

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

 



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?


> 'off' in the virtual file that the read is trying to resolve.
> I believe you are misusing 'off'.  It is the offset into the virtual
> file - not the offset into 'page'.  snprintf() might return -1.  Looks
> like you are doing bad things with the semaphore as well.  I don't think
> you can assume your routine will get called until EOF.

I'm going to check that.

Thank you for your help.

Jörg


-- 
 Da fehlt aber noch die Fehlerbehandlung. Wenn wir die jetzt einbauen,
 wird es richtig häßlich. Deshalb ist die Standardfehlerbehandlung in C
 meistens der Segmentation Fault."  -- Christian Becker 

Attachment: signature.asc
Description: Digital signature


[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