[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unresolved symbol proc_register
Hello All,
I have some problem while insmod'ing my test module.
Kindely help..
my code :---
.
------------------------------------
#ifdef MODULE
#include <linux/autoconf.h>
#if defined(CONFIG_MODVERSIONS) && !defined(MODVERSIONS)
#define MODVERSIONS
#endif
#ifdef MODVERSIONS
#include <linux/modversions.h>
#endif
#endif
#include <linux/fs.h> /* file system */
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
MODULE_LICENSE("GPL");
struct proc_dir_entry pde = {0,4,"test",S_IFREG | S_IRUGO,1,0,0,80,0,0,0};
int init_module()
{
return proc_register(&proc_root, &pde);
}
void cleanup_module()
{
proc_unregister(&proc_root,pde.low_ino);
}
---------------------------------------
It is compiling successfully...
Error am gettion is as follows
proc_test.o: unresolved symbol proc_register
proc_test.o: unresolved symbol proc_unregister
I have defined MODVERSIONS..still it is giving problem..
Please mail me back..
Thanx in advance...
LKMP learner
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/