Le Wed, 23 Jan 2008 18:31:02 +0530,
"Manish Katiyar" <[EMAIL PROTECTED]> a écrit :

> So If i do a kzalloc() in my module and then unload my module without
> freeing it, it will be a memory leak...........Am i right ?? .. 

Right. This memory will be lost.

> Or the kernel is intelligent enough to check and free those memory
> buffers during unload of the module ?

No, there isn't such a mechanism in the Linux kernel.

Sincerly,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Free Embedded Linux Training Materials
on http://free-electrons.com/training
(More than 1500 pages!)

Attachment: signature.asc
Description: PGP signature

Reply via email to