diff options
author | Corey Bryant <coreyb@linux.vnet.ibm.com> | 2012-08-14 16:43:47 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-08-15 13:16:22 +0200 |
commit | adb696f3d8535119fe0f5363de79a29e6bda83ed (patch) | |
tree | 7fe2a5557264b900f86caff04dc93d568ba1b4ab /qemu-user.c | |
parent | 2e1e79dae7a7e0a3d698fbd359d75e3a0239bdaa (diff) | |
download | qemu-adb696f3d8535119fe0f5363de79a29e6bda83ed.tar.gz qemu-adb696f3d8535119fe0f5363de79a29e6bda83ed.tar.bz2 qemu-adb696f3d8535119fe0f5363de79a29e6bda83ed.zip |
block: Enable qemu_open/close to work with fd sets
When qemu_open is passed a filename of the "/dev/fdset/nnn"
format (where nnn is the fdset ID), an fd with matching access
mode flags will be searched for within the specified monitor
fd set. If the fd is found, a dup of the fd will be returned
from qemu_open.
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-user.c')
-rw-r--r-- | qemu-user.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/qemu-user.c b/qemu-user.c index 08ccb0fe8e..13fb9ae77b 100644 --- a/qemu-user.c +++ b/qemu-user.c @@ -35,3 +35,23 @@ void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap) void monitor_set_error(Monitor *mon, QError *qerror) { } + +int monitor_fdset_get_fd(int64_t fdset_id, int flags) +{ + return -1; +} + +int monitor_fdset_dup_fd_add(int64_t fdset_id, int dup_fd) +{ + return -1; +} + +int monitor_fdset_dup_fd_remove(int dup_fd) +{ + return -1; +} + +int monitor_fdset_dup_fd_find(int dup_fd) +{ + return -1; +} |