aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorChristian Brauner <christian.brauner@ubuntu.com>2019-09-27 11:28:42 -0400
committerChristian Brauner <christian.brauner@ubuntu.com>2019-10-03 15:18:06 -0400
commit501bd0166eb949820c8e4204e62aaee5c89c84d9 (patch)
tree5761006be8e824e2b8b7388caa87bd5e8989b7cd /kernel
parent3969e76909d3aa06715997896184ee684f68d164 (diff)
fork: add kernel-doc for clone3
Add kernel-doc for the clone3() syscall. Link: https://lore.kernel.org/r/20191001114701.24661-2-christian.brauner@ubuntu.com Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index f9572f416126..bf11cf39579a 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -2604,6 +2604,17 @@ static bool clone3_args_valid(const struct kernel_clone_args *kargs)
2604 return true; 2604 return true;
2605} 2605}
2606 2606
2607/**
2608 * clone3 - create a new process with specific properties
2609 * @uargs: argument structure
2610 * @size: size of @uargs
2611 *
2612 * clone3() is the extensible successor to clone()/clone2().
2613 * It takes a struct as argument that is versioned by its size.
2614 *
2615 * Return: On success, a positive PID for the child process.
2616 * On error, a negative errno number.
2617 */
2607SYSCALL_DEFINE2(clone3, struct clone_args __user *, uargs, size_t, size) 2618SYSCALL_DEFINE2(clone3, struct clone_args __user *, uargs, size_t, size)
2608{ 2619{
2609 int err; 2620 int err;