diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2021-05-26 16:44:17 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-10 22:13:38 +0200 |
commit | 005fe822cbdacc398c7a47540078188a383574db (patch) | |
tree | 78738385b7291b865cbd9339839d74184e340c0a /libmachdev/trivfs_server.c | |
parent | f10886297e77091b7bc313766cf7c8bac97d4291 (diff) | |
download | hurd-005fe822cbdacc398c7a47540078188a383574db.tar.gz hurd-005fe822cbdacc398c7a47540078188a383574db.tar.bz2 hurd-005fe822cbdacc398c7a47540078188a383574db.zip |
libmachdev: Use notify server implementation from libports
Since the implementation in libmachdev was just forwarding calls
to the corresponding libports functions, we might as well just use
ports_notify_server_routine () directly.
Diffstat (limited to 'libmachdev/trivfs_server.c')
-rw-r--r-- | libmachdev/trivfs_server.c | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/libmachdev/trivfs_server.c b/libmachdev/trivfs_server.c index e122b0f9..cf51fb9b 100644 --- a/libmachdev/trivfs_server.c +++ b/libmachdev/trivfs_server.c @@ -101,48 +101,6 @@ install_as_translator (mach_port_t bootport) assert_perror_backtrace (err); } -/* Implementation of notify interface */ -kern_return_t -do_mach_notify_port_deleted (struct port_info *pi, - mach_port_t name) -{ - return EOPNOTSUPP; -} - -kern_return_t -do_mach_notify_msg_accepted (struct port_info *pi, - mach_port_t name) -{ - return EOPNOTSUPP; -} - -kern_return_t -do_mach_notify_port_destroyed (struct port_info *pi, - mach_port_t port) -{ - return EOPNOTSUPP; -} - -kern_return_t -do_mach_notify_no_senders (struct port_info *pi, - mach_port_mscount_t mscount) -{ - return ports_do_mach_notify_no_senders (pi, mscount); -} - -kern_return_t -do_mach_notify_send_once (struct port_info *pi) -{ - return EOPNOTSUPP; -} - -kern_return_t -do_mach_notify_dead_name (struct port_info *pi, - mach_port_t name) -{ - return EOPNOTSUPP; -} - boolean_t machdev_is_master_device (mach_port_t port) { @@ -536,7 +494,7 @@ demuxer (mach_msg_header_t *inp, mach_msg_header_t *outp) { mig_routine_t routine; if ((routine = device_server_routine (inp)) || - (routine = notify_server_routine (inp)) || + (routine = ports_notify_server_routine (inp)) || (routine = mach_i386_server_routine (inp)) || (routine = startup_notify_server_routine (inp)) || (routine = NULL, trivfs_demuxer (inp, outp))) |