lkml.org 
[lkml]   [1999]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectExporting symbols from Modules to kernel code
Hi,

This is a question regarding the kernel symbol table.

I used the X macro like

static struct symbol_table functions= {
#include <linux/symtab_begin.h>
X(function1),
X(function2),
X(function3)
#include <linux/symtab_end.h>
};

register_symtab(&functions);

in the init_module routine to export function1 function2 etc to the kernel
symbol table

Then I loaded the module using insmod

When I do lsmod my module is listed
When I do ksyms the functions are shown
When I access the functions from another module it works

But my application require that I access the functions from within
the kernel. Specifically from kernel/drivers/block/ll_rw_blk.c and
the fucntion add_request.
When I try to compile the kernel it says that symbols function1 cannot
be located.

Is there any changes I need to do to the kernel make files ?
Is it possible to access symbols exported by modules inside the kernel ?

Some help on this is much appreciated

Thanx
Ravi


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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