in order for a module to use ANY OF THE symbol from another module, or from the core kernel itself, the symbol must be declared as EXPORT_SYMBOL in the first place. And then the symbol user side must declare "extern" for the symbol before using it. On Thu, Feb 26, 2009 at 10:32 PM, Sabin <linuxguru75@xxxxxxxxx> wrote: > Thanks Matthias, > It worked! That was stupidly simple. But that still leaves the actual > question - why am I not able to use a symbol exported by kernel. Is > there anything to be done before using an exported symbol? > > Thank you > Sabin > > On Thu, 2009-02-26 at 09:50 +0100, Matthias Kaehlcke wrote: >> El Thu, Feb 26, 2009 at 02:02:18PM +0000 Sabin ha dit: >> >> > I am not able to link with proc_root symbol, though i could see it >> > exported in /proc/kallsyms. >> > I am trying something like this: >> > static void __exit procfs_exit(void) >> > { >> > remove_proc_entry(PROCFS_NAME,&proc_root); >> > printk(KERN_INFO "/proc/%s removed\n",PROCFS_NAME); >> > } >> > >> > have included the following: >> > #include <linux/module.h> >> > #include <linux/kernel.h> >> > #include <linux/proc_fs.h> >> >> to remove an entry in the root of /proc do: >> >> remove_proc_entry(PROCFS_NAME, NULL); >> > > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx > Please read the FAQ at http://kernelnewbies.org/FAQ > > -- Regards, Peter Teoh -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ