free(), the size to free?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux