kernel module programming

Discuss Programming
Post Reply
Stryker
scripter
scripter
Posts: 98
Joined: Thu Jan 23, 2003 8:50 pm
Contact:

kernel module programming

Post by Stryker » Tue Jun 22, 2004 12:48 am

I've been working around with my kernel module doesn't work right. I get the following warning when compiling it:

Code: Select all

test.c:16: warning: initialization makes integer from pointer without a cast
test.c: In function `intrpt_routine':
test.c:27: warning: passing arg 1 of `__wake_up_Rb76c5f1e' from incompatible pointer type
test.c: In function `cleanup_module':
test.c:43: warning: passing arg 1 of `printk_R1b7d4074' makes pointer from integer without a cast
test.c:44: warning: passing arg 1 of `sleep_on_Re0679a3f' from incompatible pointer type
when I insmod it everything seems to go fine, but when I remove it there's a seg fault and then it says its not loaded when i try to rmmod it again, but when i try to insmod again it says its already loaded. I'd appreciate any help anyone has to offer, so far i've been liking kernel module programming though.

Post Reply