Re: [PATCH] Make agpsupport work with modversions

From: Vojtech Pavlik (vojtech@suse.cz)
Date: Thu Oct 19 2000 - 03:23:54 EST


On Wed, Oct 18, 2000 at 02:25:41PM -0400, Rik Faith wrote:
> Just to clarify -- my use of get_module_symbol has nothing to do with
> load order. It has to do with allowing a drm module to work with or
> without the agpgart module loaded.
>
> If there's some other way to do this, I'll be happy to move to that.
> I'd like to preserve the ability to have one driver which works with
> each chipset family and not have to have separate drivers for PCI and
> AGP cards (or, rather, to have fewer instances of the drivers -- they
> already depend on SMP and MODVERSIONS, and that's a lot of overhead
> already if you just want to play Q3A :). I'd also like a dual-head
> system to be able to load the same drm module and just have it work
> for both the agp and the pci cards (this isn't supported yet, in case
> anyone is wondering).

Just do it the way most other subsystems do it - have a
drm_[un]register_driver() functions, which are exported by the DRM
generic module and have the card-specific modules call that. This way
the DRM generic module will know what drivers are loaded.

For an example see the PCI subsystem, USB, Input, chardevices, TTY
layer, whatever ...

-- 
Vojtech Pavlik
SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:14 EST