aboutsummaryrefslogtreecommitdiff
path: root/libmachdev
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2021-05-26 16:44:17 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-10 22:13:38 +0200
commit005fe822cbdacc398c7a47540078188a383574db (patch)
tree78738385b7291b865cbd9339839d74184e340c0a /libmachdev
parentf10886297e77091b7bc313766cf7c8bac97d4291 (diff)
downloadhurd-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')
-rw-r--r--libmachdev/Makefile2
-rw-r--r--libmachdev/trivfs_server.c44
2 files changed, 2 insertions, 44 deletions
diff --git a/libmachdev/Makefile b/libmachdev/Makefile
index a4a58198..7b07c926 100644
--- a/libmachdev/Makefile
+++ b/libmachdev/Makefile
@@ -20,7 +20,7 @@ makemode := library
libname = libmachdev
SRCS = ds_routines.c trivfs_server.c startup_notifyServer.c \
- deviceServer.c notifyServer.c mach_i386Server.c
+ deviceServer.c mach_i386Server.c
LCLHDRS = machdev.h machdev-device_emul.h machdev-dev_hdr.h mach_device.h trivfs_server.h
installhdrs = machdev.h machdev-device_emul.h machdev-dev_hdr.h
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)))