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 [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to