[PATCH 02/10] utilfdt_read: pass back up the length of data read
David Gibson
david at gibson.dropbear.id.au
Mon Apr 15 14:58:38 EST 2013
On Wed, Apr 10, 2013 at 02:29:07PM -0400, Mike Frysinger wrote:
> For a follow up commit, we want to be able to scan the buffer that was
> returned to us. In order to do that safely, we need to know how big
> the buffer actually is, so pass that back if requested.
Rather than changing all the callers, I'd prefer to see a new function
implemented. The existing utilfdt_read(), which assumes the caller
can get the size from the fdt header, can be reimplemented in terms of
the version returning the length.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20130415/3044ee49/attachment-0001.sig>
More information about the devicetree-discuss
mailing list