mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
fork: Pass struct kernel_clone_args into copy_thread
With io_uring we have started supporting tasks that are for most purposes user space tasks that exclusively run code in kernel mode. The kernel task that exec's init and tasks that exec user mode helpers are also user mode tasks that just run kernel code until they call kernel execve. Pass kernel_clone_args into copy_thread so these oddball tasks can be supported more cleanly and easily. v2: Fix spelling of kenrel_clone_args on h8300 Link: https://lkml.kernel.org/r/20220506141512.516114-2-ebiederm@xmission.com Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
343f4c49f2
commit
c5febea095
25 changed files with 116 additions and 58 deletions
|
@ -68,8 +68,7 @@ extern void fork_init(void);
|
|||
|
||||
extern void release_task(struct task_struct * p);
|
||||
|
||||
extern int copy_thread(unsigned long, unsigned long, unsigned long,
|
||||
struct task_struct *, unsigned long);
|
||||
extern int copy_thread(struct task_struct *, const struct kernel_clone_args *);
|
||||
|
||||
extern void flush_thread(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue