krealloc()
Posted Feb 21, 2009 14:26 UTC (Sat) by
corbet (editor, #1)
In reply to:
Getting the measure of ksize() by oak
Parent article:
Getting the measure of ksize()
I think krealloc() does use ksize(). That's part of why it exists.
I don't know for sure, but my guess is that the networking folks don't like that approach because it requires copying the packet in the case where the needed room doesn't exist. Networking hackers hate copying packets. They would rather just allocated the extra space elsewhere if need be.
(
Log in to post comments)