summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2023-03-10 16:03:29 -0600
committerChristian Brauner (Microsoft) <brauner@kernel.org>2023-03-12 10:54:43 +0100
commit89c8e98d8cfb0656dbeb648572df5b13e372247d (patch)
tree1b604dd82eecdc55c6c9bac2ef567646e5d51a35 /include
parent094717586bf71ac20ae3b240d2654d826634b21e (diff)
downloadlinux-stable-89c8e98d8cfb0656dbeb648572df5b13e372247d.tar.gz
linux-stable-89c8e98d8cfb0656dbeb648572df5b13e372247d.tar.bz2
linux-stable-89c8e98d8cfb0656dbeb648572df5b13e372247d.zip
fork: allow kernel code to call copy_process
The next patch adds helpers like create_io_thread, but for use by the vhost layer. There are several functions, so they are in their own file instead of cluttering up fork.c. This patch allows that new file to call copy_process. Signed-off-by: Mike Christie <michael.christie@oracle.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched/task.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h
index 00c54bfac0b5..537cbf9a2ade 100644
--- a/include/linux/sched/task.h
+++ b/include/linux/sched/task.h
@@ -93,6 +93,8 @@ extern void exit_files(struct task_struct *);
extern void exit_itimers(struct task_struct *);
extern pid_t kernel_clone(struct kernel_clone_args *kargs);
+struct task_struct *copy_process(struct pid *pid, int trace, int node,
+ struct kernel_clone_args *args);
struct task_struct *create_io_thread(int (*fn)(void *), void *arg, int node);
struct task_struct *fork_idle(int);
extern pid_t kernel_thread(int (*fn)(void *), void *arg, const char *name,