On Thu, 2006-03-16 at 23:43 +0530, taha hafeez wrote: > I have tried a number of examples of device drivers. > But I am not sure how to check for memory leaks... > > Can I do that and how ???? 1. Check /proc/meminfo and /proc/slabinfo to see how many free resources you have. 2. Run some workload that uses your driver. 3. Repeat a few times. If you see that there is some reduction in free resources between runs, then congratulations - you have a leak. Avishay Traeger http://www.fsl.cs.sunysb.edu/~avishay/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/