[libvirt] [PATCH 0/1] Variable length structure allocator

David Allan dallan at redhat.com
Mon Apr 5 17:21:43 UTC 2010


I've had this patch hanging around for a while, and I think it's worth committing even though the original reason for it went away.  The kind of structure it allocates is reasonably common, and the oversize calculation is tricky to get right.  Since we've already done the work (thanks Jim for the oversize calculation) I think it's worth keeping.

Dave


David Allan (1):
  Implement variable length structure allocator

 src/util/memory.c |   40 ++++++++++++++++++++++++++++++++++++++++
 src/util/memory.h |   35 +++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+), 0 deletions(-)




More information about the libvir-list mailing list