copy_process() help
From: Dan Smith (dmsmith2_at_ncsu.edu-NOSPAM)
Date: 02/25/04
- Next message: Anne: "User/Kernel Level Threads"
- Previous message: Lew Pitcher: "Re: fork + thread = zombie ?"
- Next in thread: Andi Kleen: "Re: copy_process() help"
- Reply:(deleted message) Andi Kleen: "Re: copy_process() help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 25 Feb 2004 15:39:35 -0500
...Need a little kernel programming help...
We are trying to add some functionality to the kernel for a research
project. One of the things we need to do is clone a process ourselves.
We can't (or don't want to) call fork() or clone() directly, because
we need to maintain a pointer to the new task, and perform some
modifications before the task runs.
We've created a syscall, and are using the _syscall1 macro to make the
syscall from userspace. We think that our problem is related to the
struct pt_regs parameter to copy_process(). The sys_fork() and
sys_clone() syscalls get the regs as a parameter, but we don't.
How do we get the struct pt_regs that we need to pass to copy_process()
to achieve the correct behavior?
--Dan
- Next message: Anne: "User/Kernel Level Threads"
- Previous message: Lew Pitcher: "Re: fork + thread = zombie ?"
- Next in thread: Andi Kleen: "Re: copy_process() help"
- Reply:(deleted message) Andi Kleen: "Re: copy_process() help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|