17 Aug 2011 19:20
system hangs upon the module loading
I try to get register values of a NIC , using below module. But wen i
try to insmod the module, system hangs. I dont have any clue
what is happening, Could you please help me a little.
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/proc_fs.h>
#include <linux/string.h>
#include <linux/vmalloc.h>
#include <asm/uaccess.h>
#include <net/net_namespace.h>
#include <linux/if_ether.h>
#include <linux/netfilter/xt_time.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/netfilter.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Fortune Cookie Kernel Module");
MODULE_AUTHOR("M. Tim Jones");
static struct proc_dir_entry *proc_entry;
static struct proc_dir_entry *proc_dir_entry;
(Continue reading)
RSS Feed