lkml.org 
[lkml]   [2000]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] ISA PnP (2.4.0-test9)
Date
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/

\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.109 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site