Name

kzfree — like kfree but zero memory

Synopsis

void kzfree (const void * p);
 

Arguments

p

object to free memory of

Description

The memory of the object p points to is zeroed before freed. If p is NULL, kzfree does nothing.

Note

this function zeroes the whole allocated buffer which can be a good deal bigger than the requested buffer size passed to kmalloc. So be careful when using this function in performance sensitive code.