summary refs log tree commit diff stats
path: root/include/system/ramblock.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-09-29 16:18:18 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-10-07 03:37:03 +0200
commitfe11c4957b8120c48ed650e7c970ea004d8432f4 (patch)
treed7ed2c379e4861f659e16d622bc74d3dd001a153 /include/system/ramblock.h
parent8fe6ce40190872b4ccb4a3d601f4361b4bcdb0bb (diff)
downloadfocaccia-qemu-fe11c4957b8120c48ed650e7c970ea004d8432f4.tar.gz
focaccia-qemu-fe11c4957b8120c48ed650e7c970ea004d8432f4.zip
system/ramblock: Rename @start -> @offset in ram_block_discard_range()
Rename @start as @offset, since it express an offset within a RAMBlock.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Peter Xu <peterx@redhat.com>
Message-Id: <20251002032812.26069-5-philmd@linaro.org>
Diffstat (limited to 'include/system/ramblock.h')
-rw-r--r--include/system/ramblock.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/system/ramblock.h b/include/system/ramblock.h
index 530c5a2e4c..85cceff6bc 100644
--- a/include/system/ramblock.h
+++ b/include/system/ramblock.h
@@ -103,8 +103,10 @@ struct RamBlockAttributes {
     QLIST_HEAD(, RamDiscardListener) rdl_list;
 };
 
-int ram_block_discard_range(RAMBlock *rb, uint64_t start, size_t length);
-int ram_block_discard_guest_memfd_range(RAMBlock *rb, uint64_t start,
+/* @offset: the offset within the RAMBlock */
+int ram_block_discard_range(RAMBlock *rb, uint64_t offset, size_t length);
+/* @offset: the offset within the RAMBlock */
+int ram_block_discard_guest_memfd_range(RAMBlock *rb, uint64_t offset,
                                         size_t length);
 
 RamBlockAttributes *ram_block_attributes_create(RAMBlock *ram_block);