Messages in this thread | | | Date | Tue, 18 Aug 2009 09:43:14 -0600 | Subject | Re: Purpose of parameter in sysfs binary read | From | "Rick L. Vinyard, Jr." <> |
| |
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.
| |