* source file unable to export function to kernel
@ 2005-03-28 5:43 linux lover
0 siblings, 0 replies; only message in thread
From: linux lover @ 2005-03-28 5:43 UTC (permalink / raw)
To: linux-kernel
Hi,
I have included this as myfile.c in
/usr/src/linux-2.4.24/kernel. I included its entry in
Makefile in export-objs.
//sourcefile
#define EXPORT_SYMTAB
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/myhf1.h> //contains prototypes for
fun1 and fun2
#include <linux/slab.h>
char* fun1(char* str1)
{
}
void fun2(char *str1,char *str2)
{
}
EXPORT_SYMBOL(fun1);
EXPORT_SYMBOL(fun2);
But after recompiling kernel when i boot i am unable
to see its entry in /proc/ksyms. Why??
my myhf1.h file is
extern char* fun1(char *);
extern void fun2(char*,char*);
regards,
linux_lover.
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-28 5:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-28 5:43 source file unable to export function to kernel linux lover
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®