]> git.ipfire.org Git - thirdparty/qemu.git/commit
chardev: rework filename handling
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Thu, 15 Jan 2026 14:46:03 +0000 (17:46 +0300)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 13 Feb 2026 09:00:02 +0000 (10:00 +0100)
commitbc339129b6904c832ea990078efdb6dfbe5fc9db
tree5e644d708f6901c77c93748914be54836c3ce44e
parente43eb54dc85bd472713830dad00f1351e6f1ffae
chardev: rework filename handling

Instead of checking, did backend set the filename state or not, let's
be stateless: filename is needed rarely, so, let's just have a generic
function (with optional implementation by backends) to get it.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
[ Marc-André - fix leak in ivshmem-pci.c ]
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20260115144606.233252-10-vsementsov@yandex-team.ru>
chardev/char-pty.c
chardev/char-socket.c
chardev/char.c
hw/misc/ivshmem-pci.c
include/chardev/char.h