Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Aug 2008 02:39:12 +0100
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        freebsd-arch@FreeBSD.org, brooks@FreeBSD.org, ivoras@FreeBSD.org, brueffer@FreeBSD.org
Subject:   Re: Magic symlinks redux
Message-ID:  <20080823013912.GA19588@epsilon.local>
In-Reply-To: <20080822225119.GA65119@onelab2.iet.unipi.it>
References:  <20080822193657.GB63527@onelab2.iet.unipi.it> <20080822.141312.732640662.imp@bsdimp.com> <20080822214118.GA64725@onelab2.iet.unipi.it> <20080822.160107.511563083.imp@bsdimp.com> <20080822225119.GA65119@onelab2.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Aug 23, 2008 at 12:51:19AM +0200, Luigi Rizzo wrote:
> sorry but now i am the one who doesn't understand how you can move,

[snip]

I think what Warner was saying was that the BUS code can do a mapping of
device IDs from something not known to the driver to something know by the
driver.

Take, for example, if_re.  if_re knows how to support devid 0x1234.
A new device comes out that works exactly the same way as device 0x1234, but
the the device ID is 0x4567. If we change the BUS code to map devid 0x4567 to
0x1234, we don't need to change anything in the if_re driver. We just changed
the BUS code with no change to the leaf driver.

If there is a new device with ID 0x9912 that needs modifications in if_re, we
are basically busted and need to change if_re itself. In this scenario,
we don't change anything in the BUS code because that would be pointless.

I hope this is what Warner was trying to say.

Regards,
-- 
Rui Paulo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080823013912.GA19588>