Skip to contentSkip to conversation

source file unable to export function to kernel

DISCUSSION linux lover 1 participant 1 message Mar 28, 2005

lore
Share & tools
lore
#0 lore raw

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/