util/vma: Add a function to allocate a particular address range
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 26 Jun 2019 19:32:31 +0000 (14:32 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 5 Dec 2019 16:59:10 +0000 (10:59 -0600)
commit96e3328ac2dc58fb86a0da4ec27a40aa6d41b022
tree97a18f43b14ae82992f44c5443c90e94f5e7b085
parent782fb5407d682c286678b1ac78c649c4c2858d2d
util/vma: Add a function to allocate a particular address range

This new function lets you request to remove a specific address range
from the allocator.  It returns true on success and leaves the allocator
unmodified and returns false on failure.  It doesn't need to return an
offset because, if it succeeds, the offset passed in is the allocated
offset.

Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/util/vma.c
src/util/vma.h