diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-05-07 13:15:02 -0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-07 19:25:00 +0200 |
commit | add3d8afc7fd199c0fe6bf40a46462c2f77f9ef5 (patch) | |
tree | 31830f8669c960601925aecac7f0012bd1092251 /devnode | |
parent | 42fbc5f9afb66043d4493297a84842cbeef870b7 (diff) | |
download | hurd-add3d8afc7fd199c0fe6bf40a46462c2f77f9ef5.tar.gz hurd-add3d8afc7fd199c0fe6bf40a46462c2f77f9ef5.tar.bz2 hurd-add3d8afc7fd199c0fe6bf40a46462c2f77f9ef5.zip |
Implement device_open_new for all the translators implementing the device interface.
Message-Id: <ZFfcloxDKSiyHJTH@jupiter.tail36e24.ts.net>
Diffstat (limited to 'devnode')
-rw-r--r-- | devnode/Makefile | 2 | ||||
-rw-r--r-- | devnode/devnode.c | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/devnode/Makefile b/devnode/Makefile index 0964f8d4..6172ec90 100644 --- a/devnode/Makefile +++ b/devnode/Makefile @@ -24,7 +24,7 @@ HURDLIBS = fshelp ihash iohelp ports shouldbeinlibc trivfs target = devnode MIGSTUBS = deviceServer.o notifyServer.o MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h -device-MIGSFLAGS="-DMACH_PAYLOAD_TO_PORT=ports_payload_get_name" +device-MIGSFLAGS=-DMACH_PAYLOAD_TO_PORT=ports_payload_get_name -DDEVICE_ENABLE_DEVICE_OPEN_NEW OBJS = $(SRCS:.c=.o) $(MIGSTUBS) include ../Makeconf diff --git a/devnode/devnode.c b/devnode/devnode.c index bf3378ea..f5a00f1b 100644 --- a/devnode/devnode.c +++ b/devnode/devnode.c @@ -175,6 +175,16 @@ ds_device_open (mach_port_t master_port, mach_port_t reply_port, } kern_return_t +ds_device_open_new (mach_port_t master_port, mach_port_t reply_port, + mach_msg_type_name_t reply_portPoly, + 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_portPoly, mode, + name, device, devicetype); +} + +kern_return_t ds_device_close (device_t device) { return D_INVALID_OPERATION; |