public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* unresolved symbol kiobuf_init for kernel 2.4.9-6
@ 2001-11-15 23:10 ANTHONY DELSORBO
  2001-11-16 14:02 ` Tommy Reynolds
  0 siblings, 1 reply; 2+ messages in thread
From: ANTHONY DELSORBO @ 2001-11-15 23:10 UTC (permalink / raw)
  To: linux-kernel

Hey folks,

I'm attempting to load a module whose code has a call to kiobuf_init.  The 
function kiobuf_init is defined in fs/iobuf.c BUT not forward declared in 
include/linux/iobuf.h (as it was in 2.4.3-12).  But the kernel compiles 
anyway.  The module code compiles as well -- even if I do ignore the 
undefined symbol message at compile time.  However, when I try to insmod the 
module I get the dreaded message 

module.o: unresolved symbol kiobuf_init 

Now here's the funny thing:  

The /boot/System.map file lists it as

c014d410 t kiobuf_init

But there's nothing in the /proc/ksyms

I've stepped through the installation process of insmod and noted that there 
are 1474 symbols in ksyms and none of them is kiobuf_init.  So, obviously 
when it checks for unresolved symbols it doesn't find it.

I've recompiled the kernel, the module source and even forward declared the 
function, but nothing seems to work!

What could I be doing wrong????  I've been working this problem for several 
days now without success!

Thanks,

Tony.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: unresolved symbol kiobuf_init for kernel 2.4.9-6
  2001-11-15 23:10 unresolved symbol kiobuf_init for kernel 2.4.9-6 ANTHONY DELSORBO
@ 2001-11-16 14:02 ` Tommy Reynolds
  0 siblings, 0 replies; 2+ messages in thread
From: Tommy Reynolds @ 2001-11-16 14:02 UTC (permalink / raw)
  To: ANTHONY DELSORBO; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 689 bytes --]

It was a dark and stormy night.  Suddenly
"ANTHONY DELSORBO" <delsorbo@asc.hpc.mil> began to type furiously:

> I'm attempting to load a module whose code has a call to kiobuf_init.

Don't do that.  Use "alloc_kiobuf()" and "free_kiobuf()" instead.  "Kiobuf_init"
is a worker-bee routine that mere mortals should not use.

---------------------------------------------+-----------------------------
Tommy Reynolds                               | mailto: <reynolds@redhat.com>
Red Hat, Inc., Embedded Development Services | Phone:  +1.256.704.9286
307 Wynn Drive NW, Huntsville, AL 35805 USA  | FAX:    +1.256.837.3839
Senior Software Developer                    | Mobile: +1.919.641.2923

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-16 14:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-15 23:10 unresolved symbol kiobuf_init for kernel 2.4.9-6 ANTHONY DELSORBO
2001-11-16 14:02 ` Tommy Reynolds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox