Devicetree
 help / color / mirror / Atom feed
* generating a phandle w/libfdt?
@ 2008-10-24 13:11 Kumar Gala
       [not found] ` <4BE3ADDA-362B-43AE-8D05-11260B94CD13-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
  0 siblings, 1 reply; 16+ messages in thread
From: Kumar Gala @ 2008-10-24 13:11 UTC (permalink / raw)
  To: devicetree-discuss

In some work I'm doing I noticed we don't have any APIs to generate a  
phandle via libfdt.

was wondering if anyone had ideas on this.

In first thought it seems we have to scan through the whole blob  
looking for the largest phandle id and than +1 it to generate the next  
"valid" id.  Any other ideas on how to do this more efficiently?

- k

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2008-11-07  0:02 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-24 13:11 generating a phandle w/libfdt? Kumar Gala
     [not found] ` <4BE3ADDA-362B-43AE-8D05-11260B94CD13-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2008-10-24 14:18   ` Kumar Gala
     [not found]     ` <DEE70934-6A37-4439-B27E-FC3ABF75BF24-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2008-10-24 15:15       ` Jimi Xenidis
     [not found]         ` <2D630F2F-4AA2-4537-89FE-80B2DDFADDEE-aZOuKsOsJu3MbYB6QlFGEg@public.gmane.org>
2008-10-27 14:16           ` Kumar Gala
2008-10-24 16:29       ` Yoder Stuart
     [not found]         ` <9696D7A991D0824DBA8DFAC74A9C5FA3047947A3-ofAVchDyotYzzZk0BCvKg5jmvxFtTJ+o0e7PPNI6Mm0@public.gmane.org>
2008-10-26 23:40           ` David Gibson
     [not found]             ` <20081026234052.GB22339-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org>
2008-10-27 14:15               ` Kumar Gala
     [not found]                 ` <76BF0CED-6848-43B9-8035-FC9C1F1DD981-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2008-10-28  0:04                   ` David Gibson
     [not found]                     ` <20081028000449.GB26424-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org>
2008-10-29  3:47                       ` Kumar Gala
     [not found]                         ` <33A5285E-F5BE-4109-9C29-59F23E6264A0-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2008-11-06  2:10                           ` David Gibson
     [not found]                             ` <20081106021040.GJ28465-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org>
2008-11-06 15:16                               ` Yoder Stuart
     [not found]                                 ` <9696D7A991D0824DBA8DFAC74A9C5FA304840D5C-ofAVchDyotYzzZk0BCvKg5jmvxFtTJ+o0e7PPNI6Mm0@public.gmane.org>
2008-11-06 23:27                                   ` Scott Wood
     [not found]                                     ` <49137D70.8080009-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2008-11-07  0:02                                       ` David Gibson
2008-10-27 15:14               ` Yoder Stuart
     [not found]                 ` <9696D7A991D0824DBA8DFAC74A9C5FA3047E53A0-ofAVchDyotYzzZk0BCvKg5jmvxFtTJ+o0e7PPNI6Mm0@public.gmane.org>
2008-10-28  0:05                   ` David Gibson
2008-10-26 23:44   ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox