tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] pcictl: simplify its usage



On Tue, 09 Jun 2009, Greg A. Woods wrote:
> > config(5) has allowed referencing specific instances of a starred
> > configuration for quite some time, and even though it's far from perfect
> > for partially wired down configurations, it does allow a lot more
> > flexibility than what you describe here.
> 
> I'm not sure what you mean by that, unless perhaps that you simply mean
> one can hard-wire known devices and still allow attachment of new
> unknown devices in such a way that (hopefully) user-level assumptions
> won't break.

What he means is that you can write

    scsibus* at scsi?
    # No explicit definition of "scsibus0" above, but the reference
    # to "scsibus0" below works anyway, and will do what you want
    # if you have only one scsi bus, or if you can predict which of
    # your scsi buses will appear as scsibus0.
    sd0     at scsibus0 target 0 lun 0      # SCSI disk 0
    sd*     at scsibus? target ? lun ?      # other SCSI disk drives

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index