Re: create_proc_entry hangs the kernel

2010-12-10 Thread Daniel Baluta
On Fri, Dec 10, 2010 at 2:18 PM, Daniel Baluta wrote: > On Fri, Dec 10, 2010 at 1:49 PM, Giriprasad Deviprasad > wrote: >> >> Hi, >> >>  The following program hangs the kernel, when the insmod on it, is run. Can >> any one provide ideas why : >> >> #include    // for init_module() >> #inclu

Re: create_proc_entry hangs the kernel

2010-12-10 Thread Daniel Baluta
On Fri, Dec 10, 2010 at 1:49 PM, Giriprasad Deviprasad wrote: > > Hi, > >  The following program hangs the kernel, when the insmod on it, is run. Can > any one provide ideas why : > > #include    // for init_module() > #include   // for create_proc_info_entry() > #include //

create_proc_entry hangs the kernel

2010-12-10 Thread Giriprasad Deviprasad
Hi,  The following program hangs the kernel, when the insmod on it, is run. Can any one provide ideas why : #include    // for init_module() #include   // for create_proc_info_entry() #include // for inb(), outb() int my_func( char *buf, char **start, off_t off, int count,