[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/14] kern/act.c: move struct definition to a header file
From: |
Marin Ramesa |
Subject: |
[PATCH 10/14] kern/act.c: move struct definition to a header file |
Date: |
Mon, 2 Dec 2013 22:54:48 +0100 |
* kern/act.c (GetSetState): Move struct definition to kern/act.h.
---
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
- Re: [PATCH 04/14] ddb/db_macro.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 <=
- [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