| title: | RE Problem in input device module creation |
|
Hi Russell
Thanks for your reply,
Pls find the code attached
regards..
Prafulla . .
-----Original Message-----
From: Russell King - ARM Linux [ rel="nofollow" mailto:linux@xxxxxxxxxxxxxxxx mailto:linux@xxxxxxxxxxxxxxxx ]
Sent: Thursday, July 06, 2006 3:07 PM
To: Prafulla WADASKAR
Cc: linux-arm@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Profiling code on ARM Linux - gprof and timer questions
On Thu, Jul 06, 2006 at 02:56:17PM +0530, Prafulla WADASKAR wrote:
Hi
I am writing a keypad module (device driver for linux input subsystem) for
STs Nomadik platform based on arm arch.
My problem is-
I have used input_allocate_device() in mdule init function
if I use kfree() in module exit function to free used memory by
module. Module gives page fault durring next insmod operation. why is
it so?
If I dont free the memory in exit function module works fine for
sucessive insmod/rmmod operations but leads to memory leak as we know
we are not freeing it
Show the code.
What is problem? how to solve it?
No idea without seeing the code.
Attachment:
bin03nBmI5sE0.bin" >nomadik_kpd.c
Description: Binary data
-------------------------------------------------------------------
List admin: rel="nofollow" lists.arm.linux.org.uk/mailman/listinfo/linux-arm lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ: rel="nofollow" www.arm.linux.org.uk/mailinglists/faq.php www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: rel="nofollow" www.arm.linux.org.uk/mailinglists/etiquette.php www.arm.linux.org.uk/mailinglists/etiquette.php
|