mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <20030213122610.07bbadff.rddunlap@osdl.org> (raw)
In-Reply-To: <F131jJLAiVXqMLhudPJ0001e073@hotmail.com>

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

  reply	other threads:[~2003-02-13 20:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-13 20:22 shesha bhushan
2003-02-13 20:26 ` Randy.Dunlap [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-02-13 21:10 shesha bhushan
2003-02-13 20:35 shesha bhushan
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=20030213122610.07bbadff.rddunlap@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=bhushan_vadulas@hotmail.com \
    --cc=linux-kernel@vger.kernel.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®