generating a phandle w/libfdt?

Kumar Gala galak at kernel.crashing.org
Sat Oct 25 00:11:33 EST 2008


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



More information about the devicetree-discuss mailing list