lkml.org 
[lkml]   [2009]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Purpose of parameter in sysfs binary read
From
Alan Stern wrote:
> On Tue, 18 Aug 2009, Rick L. Vinyard, Jr. wrote:
>
> Neither one. If the kernel wanted to add an offset to buf, it would
> have done so before calling the function. The code should be more like
> this:
>
> memcpy(buf, bindata + offset, min(size, bsize - offset));
>

Ahhh, offset into the binary data.

Thanks.



\
 
 \ /
  Last update: 2009-08-18 17:45    [W:0.104 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site