[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] hurd: add a new type interrupt_t for the interrupt proto
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 1/2] hurd: add a new type interrupt_t for the interrupt protocol |
Date: |
Thu, 10 Apr 2014 04:57:26 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Wed 09 Apr 2014 23:17:27 +0200, a écrit :
> * hurd/hurd_types.defs (interrupt_t): New type.
> * hurd/hurd_types.h (interrupt_t): Likewise.
> * hurd/interrupt.defs (interrupt_operation): Use the new type.
Ack.
> ---
> hurd/hurd_types.defs | 12 ++++++++++++
> hurd/hurd_types.h | 1 +
> hurd/interrupt.defs | 6 +++++-
> 3 files changed, 18 insertions(+), 1 deletion(-)
>
> diff --git a/hurd/hurd_types.defs b/hurd/hurd_types.defs
> index 6060fa4..129a68c 100644
> --- a/hurd/hurd_types.defs
> +++ b/hurd/hurd_types.defs
> @@ -168,6 +168,18 @@ destructor: EXEC_STARTUP_DESTRUCTOR
> #endif
> ;
>
> +type interrupt_t = mach_port_copy_send_t
> +#ifdef INTERRUPT_INTRAN
> +intran: INTERRUPT_INTRAN
> +#endif
> +#ifdef INTERRUPT_OUTTRAN
> +outtran: INTERRUPT_OUTTRAN
> +#endif
> +#ifdef INTERRUPT_DESTRUCTOR
> +destructor: INTERRUPT_DESTRUCTOR
> +#endif
> +;
> +
>
> type proccoll_t = mach_port_copy_send_t;
>
> diff --git a/hurd/hurd_types.h b/hurd/hurd_types.h
> index d569454..8eac206 100644
> --- a/hurd/hurd_types.h
> +++ b/hurd/hurd_types.h
> @@ -47,6 +47,7 @@ typedef mach_port_t addr_port_t;
> typedef mach_port_t startup_t;
> typedef mach_port_t fs_notify_t;
> typedef mach_port_t exec_startup_t;
> +typedef mach_port_t interrupt_t;
> typedef mach_port_t proccoll_t;
>
> #include <errno.h> /* Defines `error_t'. */
> diff --git a/hurd/interrupt.defs b/hurd/interrupt.defs
> index cc3ad1e..9981aed 100644
> --- a/hurd/interrupt.defs
> +++ b/hurd/interrupt.defs
> @@ -23,10 +23,14 @@ subsystem interrupt 33000;
>
> #include <hurd/hurd_types.defs>
>
> +#ifdef INTERRUPT_IMPORTS
> +INTERRUPT_IMPORTS
> +#endif
> +
> /* Cause a pending request on this object to immediately return. The
> exact semantics are dependent on the specific object. */
>
> routine
> -interrupt_operation (object: mach_port_t;
> +interrupt_operation (object: interrupt_t;
> waittime timeout: natural_t;
> msgseqno seqno: mach_port_seqno_t);
> --
> 1.9.1
>
--
Samuel
<s> bah, j'aime bien les feux d'artifices, mais j'ai peur de me prendre un
boeing sur le coin de la gueule si je vais sur le pont de brooklyn
-+- #ens-mim - 11 septembre forever -+-