Messages in this thread |  | | From | Keith Owens <> | Subject | Re: [PATCH] ISA PnP (2.4.0-test9) | Date | Mon, 09 Oct 2000 15:00:33 +1100 |
| |
On Mon, 09 Oct 2000 14:35:45 +1100, Keith Owens <kaos@ocs.com.au> wrote: >Solution 2: > >struct isapnp_card_id { > unsigned short card_vendor, card_device; > unsigned long driver_data; /* data private to the driver */ > struct { > unsigned short vendor, function; > } devs[ISAPNP_CARD_DEVS]; /* logical devices */ >}; > >static int isapnp_card_devs = ISAPNP_CARD_DEVS; >EXPORT_SYMBOL(isapnp_card_devs);
Replying to my own mail. Solution 2 would not work, depmod can be run before the kernel is booted so it is not guaranteed to have access to exported symbols in the kernel that goes with the module. The value of ISAPNP_CARD_DEVS must be available in the module that uses struct isapnp_card_id or in the System.map. Go with solution 1.
- 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/
|  |