[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 10/14] kern/act.c: move struct definition to a header file
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 10/14] kern/act.c: move struct definition to a header file |
Date: |
Sun, 8 Dec 2013 23:29:29 +0900 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Marin Ramesa, le Mon 02 Dec 2013 22:54:48 +0100, a écrit :
> * kern/act.c (GetSetState): Move struct definition to kern/act.h.
Ditto.
> ---
> kern/act.c | 8 --------
> kern/act.h | 7 +++++++
> 2 files changed, 7 insertions(+), 8 deletions(-)
>
> diff --git a/kern/act.c b/kern/act.c
> index 321ff98..39259dd 100644
> --- a/kern/act.c
> +++ b/kern/act.c
> @@ -776,14 +776,6 @@ kern_return_t act_resume(struct Act *act)
> return KERN_SUCCESS;
> }
>
> -typedef struct GetSetState {
> - struct ReturnHandler rh;
> - int flavor;
> - void *state;
> - int *pcount;
> - int result;
> -} GetSetState;
> -
> /* Locking: Thread */
> kern_return_t get_set_state(struct Act *act, int flavor, void *state, int
> *pcount,
> void (*handler)(ReturnHandler *rh, struct Act *act))
> diff --git a/kern/act.h b/kern/act.h
> index e064724..457f108 100644
> --- a/kern/act.h
> +++ b/kern/act.h
> @@ -147,6 +147,13 @@ typedef mach_port_t *act_array_t;
>
> #define ACT_NULL ((Act*)0)
>
> +typedef struct GetSetState {
> + struct ReturnHandler rh;
> + int flavor;
> + void *state;
> + int *pcount;
> + int result;
> +} GetSetState;
>
> /* Exported to world */
> kern_return_t act_create(struct task *task, vm_offset_t user_stack,
> vm_offset_t user_rbuf, vm_size_t user_rbuf_size, struct Act **new_act);
> --
> 1.8.1.4
>
>
--
Samuel
* B kicks DW (non mais franchement)
* DW was kicked
-+- #ens-mim - comment ça hopeless ? -+-
- [PATCH 05/14] i386/i386/idt.c: move struct definition to a header file, (continued)
- [PATCH 05/14] i386/i386/idt.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [PATCH 06/14] i386/intel/pmap.c: move struct definitions to a header file, Marin Ramesa, 2013/12/02
- [PATCH 07/14] ipc/ipc_hash.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [PATCH 08/14] ipc/ipc_marequest.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [PATCH 09/14] ipc/ipc_port.c: trivial stylistic fix for consistency, Marin Ramesa, 2013/12/02
- [PATCH 10/14] kern/act.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- Re: [PATCH 10/14] kern/act.c: move struct definition to a header file,
Samuel Thibault <=
- [PATCH 12/14] vm/memory_object_proxy.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [PATCH 11/14] kern/lock.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [PATCH 13/14] vm/vm_fault.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [PATCH 14/14] vm/vm_resident.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- Re: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC), Samuel Thibault, 2013/12/08