source file unable to export function to kernel

2005-03-27 Thread linux lover
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 
#include 
#include  //contains prototypes for
fun1 and fun2
#include 


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/ 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


source file unable to export function to kernel

2005-03-27 Thread linux lover
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/ 
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/