Re: [PATCH] ISA PnP (2.4.0-test9)

From: Keith Owens (kaos@ocs.com.au)
Date: Sun Oct 08 2000 - 23:00:33 EST


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/



This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:11 EST