diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-09-29 17:12:12 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-10-07 03:37:03 +0200 |
| commit | 34f9b0ad082268e347cee5c4903940e4ea67614f (patch) | |
| tree | 08bc84576482075463910cffaeb2c7919ac5e5a8 /include/system/ramblock.h | |
| parent | 971e25424c0e2cbbea28cc7e6d09a4569ca6cb06 (diff) | |
| download | focaccia-qemu-34f9b0ad082268e347cee5c4903940e4ea67614f.tar.gz focaccia-qemu-34f9b0ad082268e347cee5c4903940e4ea67614f.zip | |
system/ramblock: Move ram_block_is_pmem() declaration
Move ramblock_is_pmem() along with the RAM Block API exposed by the "system/ramblock.h" header. Rename as ram_block_is_pmem() to keep API prefix consistency. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Acked-by: Peter Xu <peterx@redhat.com> Message-Id: <20251002032812.26069-3-philmd@linaro.org>
Diffstat (limited to 'include/system/ramblock.h')
| -rw-r--r-- | include/system/ramblock.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/system/ramblock.h b/include/system/ramblock.h index 8999206592..7059b20d91 100644 --- a/include/system/ramblock.h +++ b/include/system/ramblock.h @@ -108,4 +108,9 @@ void ram_block_attributes_destroy(RamBlockAttributes *attr); int ram_block_attributes_state_change(RamBlockAttributes *attr, uint64_t offset, uint64_t size, bool to_discard); +/** + * ram_block_is_pmem: Whether the RAM block is of persistent memory + */ +bool ram_block_is_pmem(RAMBlock *rb); + #endif |