Messages in this thread | | | Date | Sun, 27 Mar 2005 21:43:56 -0800 (PST) | From | linux lover <> | Subject | source file unable to export function to 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/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |