mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07:00
block: Improve blk_get_attached_dev_id() docstring
Expose the method docstring in the header, and mention returned value must be free'd by caller. Reported-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20241111170333.43833-2-philmd@linaro.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
558d8eb7f3
commit
84d388c22b
2 changed files with 15 additions and 4 deletions
|
|
@ -32,6 +32,13 @@ void blk_set_allow_aio_context_change(BlockBackend *blk, bool allow);
|
|||
void blk_set_disable_request_queuing(BlockBackend *blk, bool disable);
|
||||
bool blk_iostatus_is_enabled(const BlockBackend *blk);
|
||||
|
||||
/*
|
||||
* Return the qdev ID, or if no ID is assigned the QOM path,
|
||||
* of the block device attached to the BlockBackend.
|
||||
*
|
||||
* The caller is responsible for releasing the value returned
|
||||
* with g_free() after use.
|
||||
*/
|
||||
char *blk_get_attached_dev_id(BlockBackend *blk);
|
||||
|
||||
BlockAIOCB *blk_aio_pwrite_zeroes(BlockBackend *blk, int64_t offset,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue