Hi, I just can't seem to find any public header file available to non-ON developers that mentions those functions...
Javen Wu perorated, on or about 12/14/09 18:39: > Jon Aimone wrote: >> Hi, >> >> Cool! How do I get to this function without building my own tool as >> part of ON? >> > As I known, somebody from installation consolidation build the tools > but it seems not opensource and only being used internally. > I remembered I've build my private tools long time ago. but I cannot > find it now :( >> Is libdevinfo a collection of external interfaces available to >> developers or only those building as part of ON? >> > libdevinfo is a library of Solaris which is public interfaces and part > of ON. > > Javen >> Javen Wu perorated, on or about 12/14/09 18:18: >>> oops, >>> Please refer to another direction function devfs_dev_to_prom_name(). >>> http://src.opensolaris.org/source/s?refs=devfs_dev_to_prom_name&project=/onnv >>> >>> >>> Thanks Dan's reminder :) >>> >>> Javen >>> >>> Dan Mick wrote: >>>> Jon was asking about the other direction. >>>> >>>> Javen Wu wrote: >>>>> Please refer to libdevinfo. There is a call >>>>> devfs_prom_to_dev_name() you can use to do translation between >>>>> PROM name to devfs name. >>>>> http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libdevinfo/devfsinfo.c#939 >>>>> >>>>> >>>>> http://src.opensolaris.org/source/s?refs=devfs_prom_to_dev_name&project=/onnv >>>>> >>>>> >>>>> The function is actually provided by openprom(7D) driver. Or you >>>>> can use ioctl() of openprom driver directly: >>>>> /usr/src/uts/common/io/openprom.c OPROMPROM2DEVNAME >>>>> >>>>> Thanks >>>>> Javen >>>>> >>>>> >>>>> >>>>> Jon Aimone wrote: >>>>>> Hi, >>>>>> >>>>>> For a SPARC system is there a simple way to determine the OBP >>>>>> device path for a disk given its /devices path in Solaris? The >>>>>> leaf of the path on a running system is different than the path >>>>>> listed in the OBP. >>>>>> >>>>>> For example, here is the boot-device of a system as seen from the >>>>>> OBP and then from Solaris: >>>>>> >>>>>> /pci at 400/pci at 0/pci at 8/scsi at 0/disk at 1,0:a >>>>>> /devices/pci at 400/pci at 0/pci at 8/scsi at 0/sd at 0,0:a >>>>>> >>>>>> I can understand simply removing /devices, but what about the >>>>>> "disk" -vs- "sd" bit? I presume "sd" represented the driver. Can >>>>>> I always remove the prefix of the last word up to the @ (e.g. sd >>>>>> or ssd) and replace it with "disk"? >>>>>> >>>>>> The installer must do this somehow to set the boot device... >>>>>> >>>>>> _______________________________________________ >>>>>> on-discuss mailing list >>>>>> on-discuss at opensolaris.org >>>>>> http://mail.opensolaris.org/mailman/listinfo/on-discuss >>>>>> >>>>> >>>>> _______________________________________________ >>>>> on-discuss mailing list >>>>> on-discuss at opensolaris.org >>>>> http://mail.opensolaris.org/mailman/listinfo/on-discuss >>>> >>>> >>>> >>> >> >> _______________________________________________ >> on-discuss mailing list >> on-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/on-discuss >> > -- *<|:-o)> Merry Christmas, Jon. {-%] ======== If you always do what you've always done, you'll always get what you've always gotten. - Anon. -------- When someone asks you, "Penny for your thoughts," and you put your two cents in, what happens to the other penny? - G. Carlin (May 12, 1937 - June 22, 2008) -------------- next part -------------- A non-text attachment was scrubbed... Name: Jon_Aimone.vcf Type: text/x-vcard Size: 305 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/caiman-discuss/attachments/20091214/144a166f/attachment.vcf>