lodable kernel module doubt...
I had written a driver and it was working fine on FC11...
Then i tried that program on FC8 and observed that it hangs/crashes sometime after insertng the module (insmod) OR at times after removing the module and again trying to insert the module... Not sure what is wrong...the program or something else... Can any1 plz help me?? |
Why don't u put some code for display ? It may be possible for someone to help u after that !!
|
Here's the program...
// PCI driver #define OUR_PCI_VENDER_ID 0x10b5 #define OUR_PCI_DEVICE_ID 0x9054 #include <linux/module.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/pci.h> #include <linux/init.h> #include <linux/stat.h> #include <linux/slab.h> #include <asm/system.h> #include <asm/io.h> #include <linux/types.h> Quote:
Quote:
Quote:
Quote:
Quote:
|
Does dmesg say anything special ? and it will be better if u edit u r post and put your code in the CODE tags !
|
nop... nothng...it shows that the device has been initialized after insmod... and if i remove the module ,then it shows that module is exited....but after the thing crashes(hangs), nothing works...only way to get out is to reset the PC...n after that i m back to square 1..
|
Till u don't get a perfect answer, What u can do is to comment out the code where u have allocated memory with kmalloc and see if that memory allocation was the cause of the hanging ?
|
But kmalloc worked perfectly fine when i used FC11....What can be the probable reason for this...
|
Is there some big kernel version difference between fedora 8 and fedora 11 ? Ok I agree this is a dumb question, I shall get back to you if I could find something on this !
|
i don't know... for FC8 was 2.6.xx... dont remember about which FC11 i had....
|
alright...thanks...
|
All times are GMT -5. The time now is 04:48 PM. |