All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Loeliger <jdl-CYoMK+44s/E@public.gmane.org>
To: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: libfdt: Implement property iteration functions
Date: Wed, 10 Mar 2010 08:17:01 -0600	[thread overview]
Message-ID: <E1NpMib-0001id-Pi@jdl.com> (raw)
In-Reply-To: <20100309063914.GA11655@yookeroo>

> For ages, we've been talking about adding functions to libfdt to allow
> iteration through properties.  So, finally, here are some.
> 
> I got bogged down on this for a long time because I didn't want to
> expose offsets directly to properties to the callers.  But without
> that, attempting to make reasonable iteration functions just became
> horrible.  So eventually, I settled on an interface which does now
> expose property offsets.  fdt_first_property_offset() and
> fdt_next_property_offset() are used to step through the offsets of the
> properties starting from a particularly node offset.  The details of
> the property at each offset can then be retrieved with either
> fdt_get_property_by_offset() or fdt_getprop_by_offset() which have
> interfaces similar to fdt_get_property() and fdt_getprop()
> respectively.
> 
> No explicit testcases are included, but we do use the new functions to
> reimplement the existing fdt_get_property() function.
> 
> Signed-off-by: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>

Applied.

jdl

      reply	other threads:[~2010-03-10 14:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-09  6:39 libfdt: Implement property iteration functions David Gibson
2010-03-10 14:17 ` Jon Loeliger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1NpMib-0001id-Pi@jdl.com \
    --to=jdl-cyomk+44s/e@public.gmane.org \
    --cc=david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.