Skip to contentSkip to conversation

bootwrapper: relative finddevice()

DISCUSSION Scott Wood 2 participants 2 messages Oct 8, 2007 – Oct 10, 2007

lore
Share & tools
lore

Scott Wood

author
#0 lore raw

I'd like to expose flatdevtree's ability to do relative path lookups in ops, and I'd prefer to extend the existing finddevice method rather than add a new finddevice_rel. However, I'm not very familiar with real OF -- how would one go about fixing its implementation?

-Scott

#1 lore raw
Quoted 4 lines · Scott Wood

I'd like to expose flatdevtree's ability to do relative path lookups in ops, and I'd prefer to extend the existing finddevice method rather than add a new finddevice_rel. However, I'm not very familiar with real OF -- how would one go about fixing its implementation?

Well, it should be possible to do package-to-path on the start node, join the paths then finddevice on the result. I'm not sure if there's an easier way.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson