Re: Purpose of parameter in sysfs binary read

From: Rick L. Vinyard, Jr.
Date: Tue Aug 18 2009 - 11:43:27 EST


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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/