kobj multiple inheritance
From: Doug Rabson (dfr_at_nlsystems.com)
Date: 09/22/03
- Previous message: John Polstra: "Re: interrupt latency and driver locking"
- Next in thread: M. Warner Losh: "Re: kobj multiple inheritance"
- Reply: M. Warner Losh: "Re: kobj multiple inheritance"
- Reply: Justin T. Gibbs: "Re: kobj multiple inheritance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: arch@freebsd.org Date: 22 Sep 2003 10:10:37 +0100
I believe that I have the kobj multiple inheritance changes about ready
for committing now. I have locked up the class handling in kobj and I've
re-done the method dispatch so that it is MP-safe without needing locks
(I would appreciate a close look at that part by another pair of eyes).
You can get the current state of this patch at
http://people.freebsd.org/~dfr/kobj-mi-22092003.diff.
I've included in this patch a couple of uses of the two main new
features. I have changed the cardbus driver so that it derives from the
pci driver. This allows many pci methods to be removed from the cardbus
method table and should allow many of those methods to be staticised in
the pci driver again.
I have also edited a bunch of pci drivers with explicit cardbus
attachments so that they just list as pci drivers (where the cardbus
attachment is identical to the pci attachment). This demonstrates the
other inheritance feature which searches for drivers in both the bus
devclass and the bus devclass' parent. This effectively allows all pci
drivers to get into the cardbus probe. If a particular driver needs to
treat its cardbus attachment specially, it can still do this by adding a
special cardbus driver (e.g. with a cardbus specific probe or attach
method) to the cardbus devclass (exactly as it does now).
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: John Polstra: "Re: interrupt latency and driver locking"
- Next in thread: M. Warner Losh: "Re: kobj multiple inheritance"
- Reply: M. Warner Losh: "Re: kobj multiple inheritance"
- Reply: Justin T. Gibbs: "Re: kobj multiple inheritance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|