ratheesh kannoth | 17 Aug 2011 19:20
Picon

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)

ratheesh kannoth | 17 Aug 2011 19:32
Picon

Re: system hangs upon the module loading

my bad.

insmod works fine and i could see "fortune" proc entry in /proc/net directory.

system hangs when i do  the command -     cat  fortune

On Wed, Aug 17, 2011 at 10:50 PM, ratheesh kannoth
<ratheesh.ksz@...> wrote:
> 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>
>
(Continue reading)


Gmane