mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "shesha bhushan" <bhushan_vadulas@hotmail.com>
To: rddunlap@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: Exporting Kernel Symbols
Date: Thu, 13 Feb 2003 21:10:07 +0000	[thread overview]
Message-ID: <F137l6ds7s07Bj89Nwv0002e18c@hotmail.com> (raw)

OK I got this working. It was a very silly thing.
linux/fs/read_write.c had not included <linux/module.h> But the kernel 
compilation was not complaining about the useage of EXPORT_SYMBOL without 
including <linux/module.
Now its working fine.

Thanks
-Shesha


>From: "Randy.Dunlap" <rddunlap@osdl.org>
>To: "shesha bhushan" <bhushan_vadulas@hotmail.com>
>CC: linux-kernel@vger.kernel.org
>Subject: Re: Exporting Kernel Symbols
>Date: Thu, 13 Feb 2003 12:26:10 -0800
>
>On Thu, 13 Feb 2003 20:22:48 +0000
>"shesha bhushan" <bhushan_vadulas@hotmail.com> wrote:
>
>| Hi,
>|   I have written a new function in linux/fs/read_write.c and I want to 
>make
>| the function avaliable to other kernel modules loaded using insmod.
>| He is what I did:
>| 1. Wrore the func my_func() in linux/fs/read_write.c
>| 2. Used the macro EXPORT_SYMBOL(my_func) inside linux/fs/read_write.c
>| 3. Have a signature of my_func in my_func.h
>| 4. Include my_func.h in linux/fs/read_write.c and my_driver.c
>| 5. Recompiled the kernel
>| 6. Compiler my_driver as loadable module.
>| 7. Brought my new kernel Up.
>| 8 . Insmod my_driver.o
>| Here I get the error "Unresolved symbol my_func"
>| Can any one clarify this.
>
>For what kernel version?
>
>In 2.4.20, e.g., in linux/fs/Makefile, change the following line:
>
>export-objs := filesystems.o open.o dcache.o buffer.o
>
>to include read_write.o
>
>--
>~Randy
>-
>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/

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


             reply	other threads:[~2003-02-13 21:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-13 21:10 shesha bhushan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-02-13 20:35 shesha bhushan
2003-02-13 20:22 shesha bhushan
2003-02-13 20:26 ` Randy.Dunlap
2002-01-28 13:13 exporting kernel symbols kumar M
2002-01-28 13:22 ` Keith Owens
2002-01-27 15:16 kumar M
2002-01-27 23:37 ` Keith Owens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F137l6ds7s07Bj89Nwv0002e18c@hotmail.com \
    --to=bhushan_vadulas@hotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rddunlap@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®