missing helper - task_stack_page()
Subsystems (2)
PATCH 1/50 missing helper - task_stack_page()
References: <[email protected]>
In-Reply-To: <[email protected]>
new helper - task_stack_page(task). Returns pointer to the memory object containing task stack; usually thread_info of task sits in the beginning of that object.
Signed-off-by Al Viro <[email protected]>
---
include/asm-m68k/thread_info.h | 1 + include/linux/sched.h | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
51a180569d2190fe1d57d2ff077b3a832a408782
include/asm-m68k/thread_info.h +1 -0
@@ -37,6 +37,7 @@ struct thread_info {#define init_stack (init_thread_union.stack)#define task_thread_info (tsk) (&(tsk)->thread.info) +#define task_stack_page (tsk) ((void *)(tsk)->thread_info)#define current_thread_info () task_thread_info(current)#define __HAVE_THREAD_FUNCTIONS
include/linux/sched.h +1 -0
@@ -1234,6 +1234,7 @@ static inline void task_unlock(struct ta#ifndef __HAVE_THREAD_FUNCTIONS#define task_thread_info (task) (task)->thread_info +#define task_stack_page (task) ((void*)((task)->thread_info))static inline void setup_thread_stack (struct task_struct *p,struct task_struct *org) {
Signature · 1 line
0.99.9.GIT