source file unable to export function to kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux