diff options
author | Fabiano Rosas <farosas@suse.de> | 2024-06-17 15:57:21 -0300 |
---|---|---|
committer | Fabiano Rosas <farosas@suse.de> | 2024-06-20 10:42:24 -0300 |
commit | a93ad56053e54a94875faabb042d7c60fdd2fe20 (patch) | |
tree | 109eccfc634ae880529e42cfb6f5a63a34a0d258 /include/qemu/rcu.h | |
parent | 1cd93fb0bf8b1fddab4c38e17145cc8776eadaa0 (diff) | |
download | qemu-a93ad56053e54a94875faabb042d7c60fdd2fe20.zip qemu-a93ad56053e54a94875faabb042d7c60fdd2fe20.tar.gz qemu-a93ad56053e54a94875faabb042d7c60fdd2fe20.tar.bz2 |
monitor: Introduce monitor_fdset_*free
Introduce new functions to remove and free no longer used fds and
fdsets.
We need those to decouple the remove/free routines from
monitor_fdset_cleanup() which will go away in the next patches.
The new functions:
- monitor_fdset_free/_if_empty() will be used when a monitor
connection closes and when an fd is removed to cleanup any fdset
that is now empty.
- monitor_fdset_fd_free() will be used to remove one or more fds that
have been explicitly targeted by qmp_remove_fd().
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'include/qemu/rcu.h')
0 files changed, 0 insertions, 0 deletions