summaryrefslogtreecommitdiff
path: root/libdiskfs/interrupt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/interrupt.c')
-rw-r--r--libdiskfs/interrupt.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/libdiskfs/interrupt.c b/libdiskfs/interrupt.c
index f7441934..ffd7fb83 100644
--- a/libdiskfs/interrupt.c
+++ b/libdiskfs/interrupt.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1993, 1994 Free Software Foundation
+ Copyright (C) 1993, 1994, 1995 Free Software Foundation
This file is part of the GNU Hurd.
@@ -25,5 +25,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
kern_return_t
diskfs_S_interrupt_operation (mach_port_t handle)
{
+ struct port_info *pi;
+
+ pi = ports_lookup_port (diskfs_port_bucket, handle, 0);
+ if (!pi)
+ return EOPNOTSUPP;
+
+ ports_interrupt_rpc (pi);
+
+ ports_port_deref (pi);
+
return 0;
}