summaryrefslogtreecommitdiff
path: root/libtrivfs/interrupt.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-08-25 18:48:00 +0000
committerMiles Bader <miles@gnu.org>1995-08-25 18:48:00 +0000
commitbfd7a8417783bf175bdb0a884cdfbfc9aecb4f95 (patch)
tree2245fde4e361439ed597c10300ed391a30d25365 /libtrivfs/interrupt.c
parent071287b5b4b52299025485b09e85a4b0cfb1a170 (diff)
(trivfs_S_interrupt_operation): Use ports_interrupt_rpc.
Diffstat (limited to 'libtrivfs/interrupt.c')
-rw-r--r--libtrivfs/interrupt.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libtrivfs/interrupt.c b/libtrivfs/interrupt.c
index 5dac2a1c..3b3bd211 100644
--- a/libtrivfs/interrupt.c
+++ b/libtrivfs/interrupt.c
@@ -22,8 +22,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "priv.h"
#include "interrupt_S.h"
-kern_return_t
-trivfs_S_interrupt_operation (mach_port_t handle)
+error_t
+trivfs_S_interrupt_operation (mach_port_t port)
{
+ struct port_info *pi = ports_lookup_port (0, port, 0);
+ if (!pi)
+ return EOPNOTSUPP;
+ ports_interrupt_rpc (pi);
+ ports_port_deref (pi);
return 0;
}