free(), the size to free?
Wenda Ni
wonda.ni at gmail.com
Wed May 25 14:00:41 EDT 2016
The prototype is void kfree(const void *).
As the input pointer is void *, how does the kernel know the size of memory
to be freed? There should be some metadata recorded under the hood, right?
Thank you for sharing your thoughts.
Cheers,
Wenda Ni, Ph.D.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160525/b3db631c/attachment.html
More information about the Kernelnewbies
mailing list