Magic symlinks redux
M. Warner Losh
imp at bsdimp.com
Sat Aug 23 04:47:05 UTC 2008
In message: <200808222241.52325.jhb at freebsd.org>
John Baldwin <jhb at freebsd.org> writes:
: On Friday 22 August 2008 10:05:11 pm M. Warner Losh wrote:
: > In message: <20080823013912.GA19588 at epsilon.local>
: >
: > : I hope this is what Warner was trying to say.
: >
: > More or less the following, with a less lame way of getting the table
: > into the kernel, and maybe more fields than vendor/device....
: >
: > The reason this works is that the pci_get_vendor and pci_get_device
: > read out of the area pointed to by cfg.
...
: It might be nice to drive it by hints so users can tweak it on the fly. Maybe
: something like:
:
: hint.pci0.<slot>.<func>.vendor=XXXXX
:
: Then users can simply add entries to /boot/loader.conf w/o needing any
: recompiles for new device IDs that the driver can handle using an existing
: device id.
:
: The lookup table you have still requires patching source somewhere which
: probably defeats the purpose.
That's the whole "less lame of getting data into the kernel" I was
talking about. The above was to show the concept, not an actual
implementation of the data. I don't like the hint idea so much, but
was looking for some other way to get the data into the kernel.
Warner
More information about the freebsd-arch
mailing list