* Problems in exporting symbols
@ 2001-11-30 11:07 kumar M
2001-11-30 11:29 ` Keith Owens
0 siblings, 1 reply; 5+ messages in thread
From: kumar M @ 2001-11-30 11:07 UTC (permalink / raw)
To: linux-kernel; +Cc: kumarm4
Hi,
I am attempting to process Scsi Requests for implementaion of a
customised target mode driver through my kernel module.
FOr achieving this, I have declared a global pointer 'my_request' of
Scsi_Request type, and duly allocated (using scsi_allocate_request ) in the
scan_scsis_single function.
I am exporting the symbol through the EXPORT_SYMBOL macro in scsi_syms.c. I
observe that scsi_allocate_request goes thorugh fine, and able to initialise
it.
Howewver, when I reference the same in my module while processing
at a later stage, I am obtaining an unresolved external for
'my_request' while loading my module.
I am able to see the variable in /proc/kysms as :
my_request_R__ver_my_request
Can I get any inputs on why I am facing this problem ?
TIA,
Kumar
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems in exporting symbols
2001-11-30 11:07 Problems in exporting symbols kumar M
@ 2001-11-30 11:29 ` Keith Owens
0 siblings, 0 replies; 5+ messages in thread
From: Keith Owens @ 2001-11-30 11:29 UTC (permalink / raw)
To: kumar M; +Cc: linux-kernel
On Fri, 30 Nov 2001 11:07:17 +0000,
"kumar M" <kumarm4@hotmail.com> wrote:
>my_request_R__ver_my_request
Gee, it must be at least a week since I pointed somebody at the FAQ
entry for this. http://www.tux.org/lkml/#s8-8
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems in exporting symbols
2002-01-05 14:43 kumar M
2002-01-05 23:34 ` Keith Owens
@ 2002-01-06 12:48 ` Vikram
1 sibling, 0 replies; 5+ messages in thread
From: Vikram @ 2002-01-06 12:48 UTC (permalink / raw)
To: kumar M; +Cc: linux-kernel
look at Documentation/Configure.help and specifically the
CONFIG_MODVERSION option.....
hope this helps.
Vikram
On Sat, 5 Jan 2002, kumar M wrote:
> Hi,
>
> I am getting a kernel mismatch error when I insmod a binary module
> compiled on a 2.4.2 kernel (kernel name say linux-2-4-2-v1) on a different
> system with the same 2.4.2 kernel but with a different kernel name
> (linux-2-4-2-v2). I dont want to recompile the module everytime I give a new
> name to a kernel or for every different system.
> How do I fix this problem ?
>
> TIA,
> Kumar
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems in exporting symbols
2002-01-05 14:43 kumar M
@ 2002-01-05 23:34 ` Keith Owens
2002-01-06 12:48 ` Vikram
1 sibling, 0 replies; 5+ messages in thread
From: Keith Owens @ 2002-01-05 23:34 UTC (permalink / raw)
To: kumar M; +Cc: linux-kernel
On Sat, 05 Jan 2002 14:43:20 +0000,
"kumar M" <kumarm4@hotmail.com> wrote:
>I am getting a kernel mismatch error when I insmod a binary module
>compiled on a 2.4.2 kernel (kernel name say linux-2-4-2-v1) on a different
>system with the same 2.4.2 kernel but with a different kernel name
>(linux-2-4-2-v2). I dont want to recompile the module everytime I give a new
>name to a kernel or for every different system.
>How do I fix this problem ?
Try insmod -f, but don't complain if it destroys your system. Modules
tend to be very kernel specific, forcing a module load into a different
kernel is a good way to kill your machine.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems in exporting symbols
@ 2002-01-05 14:43 kumar M
2002-01-05 23:34 ` Keith Owens
2002-01-06 12:48 ` Vikram
0 siblings, 2 replies; 5+ messages in thread
From: kumar M @ 2002-01-05 14:43 UTC (permalink / raw)
To: linux-kernel; +Cc: kumarm4
Hi,
I am getting a kernel mismatch error when I insmod a binary module
compiled on a 2.4.2 kernel (kernel name say linux-2-4-2-v1) on a different
system with the same 2.4.2 kernel but with a different kernel name
(linux-2-4-2-v2). I dont want to recompile the module everytime I give a new
name to a kernel or for every different system.
How do I fix this problem ?
TIA,
Kumar
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-01-06 12:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-30 11:07 Problems in exporting symbols kumar M
2001-11-30 11:29 ` Keith Owens
2002-01-05 14:43 kumar M
2002-01-05 23:34 ` Keith Owens
2002-01-06 12:48 ` Vikram
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®