On Mon, 09 Oct 2000 14:35:45 +1100, 
Keith Owens <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to