[PATCH 02/10] utilfdt_read: pass back up the length of data read

Mike Frysinger vapier at gentoo.org
Tue Apr 16 09:22:06 EST 2013


On Monday 15 April 2013 00:58:38 David Gibson wrote:
> 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.

ok, i've added stub funcs that take a _len param and rebase the existing ones 
on top of that
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20130415/5c072fb5/attachment.sig>


More information about the devicetree-discuss mailing list