From 6cae63b470876cc3c5bf9fbe2ff5287d6b2f72ca Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sun, 7 Mar 2021 11:27:24 +0100 Subject: libmachdev: pass shutdown handle to shutdown method * libmachdev/machdev-device_emul.h (struct machdev_device_emulation_ops): Add shutdown method. * libmachdev/ds_routines.c (machdev_device_shutdown): Take dosync_handle handle and pass it to shutdown method. * libmachdev/machdev.h (machdev_device_shutdown): Update prototype. * libmachdev/trivfs_server.c (S_startup_dosync): Pass shutdown handle to machdev_device_shutdown call. * rumpdisk/block-rump.c (rumpdisk_device_shutdown): Take dosync_handle parameter. --- libmachdev/trivfs_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmachdev/trivfs_server.c') diff --git a/libmachdev/trivfs_server.c b/libmachdev/trivfs_server.c index d1d3a71d..e3e4045d 100644 --- a/libmachdev/trivfs_server.c +++ b/libmachdev/trivfs_server.c @@ -429,7 +429,7 @@ S_startup_dosync (mach_port_t handle) ports_port_deref (inpi); /* Sync and close device(s) */ - machdev_device_shutdown (); + machdev_device_shutdown (handle); return trivfs_goaway (NULL, FSYS_GOAWAY_FORCE); } -- cgit v1.2.3