From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [RFC 08/19] xen/dts: Provide an helper to get a DT node from a path provided by a guest Date: Thu, 03 Jul 2014 12:49:37 +0100 Message-ID: <53B54351.2060701@linaro.org> References: <1402935486-29136-1-git-send-email-julien.grall@linaro.org> <1402935486-29136-9-git-send-email-julien.grall@linaro.org> <1404387012.17859.12.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X2fWJ-0002dB-W1 for xen-devel@lists.xenproject.org; Thu, 03 Jul 2014 11:49:44 +0000 Received: by mail-wg0-f50.google.com with SMTP id m15so96011wgh.33 for ; Thu, 03 Jul 2014 04:49:41 -0700 (PDT) In-Reply-To: <1404387012.17859.12.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xenproject.org, stefano.stabellini@citrix.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org Hi Ian, On 07/03/2014 12:30 PM, Ian Campbell wrote: > On Mon, 2014-06-16 at 17:17 +0100, Julien Grall wrote: >> Signed-off-by: Julien Grall >> --- >> xen/common/device_tree.c | 19 +++++++++++++++++++ >> xen/include/xen/device_tree.h | 17 +++++++++++++++++ >> 2 files changed, 36 insertions(+) >> >> diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c >> index 4736e0d..fd95307 100644 >> --- a/xen/common/device_tree.c >> +++ b/xen/common/device_tree.c >> @@ -13,6 +13,7 @@ >> #include >> #include >> #include >> +#include >> #include >> #include >> #include >> @@ -661,6 +662,24 @@ struct dt_device_node *dt_find_node_by_path(const char *path) >> return np; >> } >> >> +int dt_find_node_by_gpath(XEN_GUEST_HANDLE(char) u_path, uint32_t u_plen, >> + struct dt_device_node **node) > > My initial feeling is that this should be a static helper in whichever > file is using this rather than part of the "dt library" interface. It's used in 2 different place (see patch #9 and #12). Regards, -- Julien Grall