From add3d8afc7fd199c0fe6bf40a46462c2f77f9ef5 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sun, 7 May 2023 13:15:02 -0400 Subject: Implement device_open_new for all the translators implementing the device interface. Message-Id: --- boot/Makefile | 1 + boot/boot.c | 13 +++++++++++++ 2 files changed, 14 insertions(+) (limited to 'boot') diff --git a/boot/Makefile b/boot/Makefile index e2eeb20b..bbf19ea9 100644 --- a/boot/Makefile +++ b/boot/Makefile @@ -26,6 +26,7 @@ MIGSTUBS = machServer.o mach_hostServer.o gnumachServer.o task_notifyServer.o OBJS = boot.o $(COMMON-OBJS) $(MIGSTUBS) target = boot MIGSFLAGS=-imacros $(srcdir)/mig-mutate.h -DHURD_DEFAULT_PAYLOAD_TO_PORT=1 +device-MIGSFLAGS=-DDEVICE_ENABLE_DEVICE_OPEN_NEW io-MIGSFLAGS=-DREPLY_PORTS -DHURD_DEFAULT_PAYLOAD_TO_PORT=1 HURDLIBS = store shouldbeinlibc ihash LDLIBS += -lpthread diff --git a/boot/boot.c b/boot/boot.c index 3fa9ddab..b661f09c 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -991,6 +991,19 @@ ds_device_open (mach_port_t master_port, return device_open (master_device_port, mode, name, device); } +kern_return_t +ds_device_open_new (mach_port_t master_port, + mach_port_t reply_port, + mach_msg_type_name_t reply_type, + dev_mode_t mode, + const_dev_name_t name, + mach_port_t *device, + mach_msg_type_name_t *devicetype) +{ + return ds_device_open (master_port, reply_port, reply_type, mode, + name, device, devicetype); +} + kern_return_t ds_device_close (device_t device) { -- cgit v1.2.3