]> git.ipfire.org Git - thirdparty/qemu.git/commit
util/fifo8: Rename fifo8_peek_buf() -> fifo8_peek_bufptr()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 22 Jul 2024 11:21:44 +0000 (13:21 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 23 Jul 2024 20:34:54 +0000 (22:34 +0200)
commit06a16e7ba98438087b8806bad0ddf094380892a9
treeb94e142a67bac7dde5ff73ebe8abef7a6f53f8e4
parentb81bc8dc8df414ff7767ee060d9234de45861089
util/fifo8: Rename fifo8_peek_buf() -> fifo8_peek_bufptr()

Since fifo8_peek_buf() return a const buffer (which points
directly into the FIFO backing store). Rename it using the
'bufptr' suffix to better reflect that it is a pointer to
the internal buffer that is being returned. This will help
differentiate with methods *copying* the FIFO data.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20240722160745.67904-5-philmd@linaro.org>
hw/scsi/esp.c
include/qemu/fifo8.h
util/fifo8.c