Alan, I think you (actually we) are out of luck. I recall looking for such library call before and could not find it. I am pretty sure such interface was not created since then...
Perhaps it would be appropriate to open an RFE for this and other possible improvements in libscf (if such RFE doesn't exist already). Antonello Alan Maguire wrote: > I was wondering, is there a public interface > in libscf that supports possibly partial FMRI strings > (e.g. "sendmail") that uniquely identify an > instance? The use case is I'd like to take a (possibly > partial) FMRI, expand it and compare against > another FMRI, that may or may not expand to the > same instance. > > I've used scf_walk_fmri() for this sort > of thing in the past, but I was hoping one of the > public libscf functions might support this too > (experimentation seems to suggest scf_decode_fmri() > requires a full FMRI specification, e.g > "network/smtp:sendmail"). > > Thanks! > > Alan > _______________________________________________ > smf-discuss mailing list > smf-discuss at opensolaris.org