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/ds_routines.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmachdev/ds_routines.c') diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c index d2b5352e..c2de4b26 100644 --- a/libmachdev/ds_routines.c +++ b/libmachdev/ds_routines.c @@ -315,13 +315,13 @@ void machdev_device_init() } } -void machdev_device_shutdown() +void machdev_device_shutdown(mach_port_t dosync_handle) { int i; for (i = 0; i < num_emul; i++) { if (emulation_list[i]->shutdown) - emulation_list[i]->shutdown(); + emulation_list[i]->shutdown(dosync_handle); } } -- cgit v1.2.3