diff options
author | Damien Zammit <damien@zamaudio.com> | 2020-08-01 15:05:38 +1000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-08-02 23:33:36 +0200 |
commit | 49eae3b568ca925e9f0f928f8fb6dd8457d7d0b0 (patch) | |
tree | 7d54b9ff7c9fafa3e70960d12f0a98c957a815dd /libmachdev/ds_routines.c | |
parent | 304adff10d5bdeeb618a6633e3b80e51aa4585c6 (diff) | |
download | hurd-49eae3b568ca925e9f0f928f8fb6dd8457d7d0b0.tar.gz hurd-49eae3b568ca925e9f0f928f8fb6dd8457d7d0b0.tar.bz2 hurd-49eae3b568ca925e9f0f928f8fb6dd8457d7d0b0.zip |
libmachdev: Introduce startup notification for clean rumpdisk shutdown
Message-Id: <20200801050538.273196-1-damien@zamaudio.com>
Diffstat (limited to 'libmachdev/ds_routines.c')
-rw-r--r-- | libmachdev/ds_routines.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c index 53e0c080..64080176 100644 --- a/libmachdev/ds_routines.c +++ b/libmachdev/ds_routines.c @@ -317,6 +317,16 @@ void machdev_device_init() } } +void machdev_device_shutdown() +{ + int i; + for (i = 0; i < num_emul; i++) + { + if (emulation_list[i]->shutdown) + emulation_list[i]->shutdown(); + } +} + static int demuxer (mach_msg_header_t *inp, mach_msg_header_t *outp) { |