diff options
author | David Hildenbrand <david@redhat.com> | 2018-12-14 14:10:42 +0100 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2019-01-09 22:09:31 -0200 |
commit | f3b0b626f615c6155d0cbb2f1781e1d1476144fc (patch) | |
tree | e8562b24fb34b4cbbd91df6f57a9bb7c32619560 /hw/mem | |
parent | c73e661f2a52df339ddd48833f5dd623ddc7359b (diff) |
range: add some more functions
Add some more functions that will be used in memory-device context.
range_init(): Init using lower bound and size, check for validity
range_init_nofail(): Init using lower bound and size, validity asserted
range_size(): Extract the size of a range
range_overlaps_range(): Check for overlaps of two ranges
range_contains_range(): Check if one range is contained in the other
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20181214131043.25071-2-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/mem')
0 files changed, 0 insertions, 0 deletions