diff options
author | Christian Brauner <christian.brauner@ubuntu.com> | 2019-09-27 17:28:42 +0200 |
---|---|---|
committer | Christian Brauner <christian.brauner@ubuntu.com> | 2019-10-03 21:18:06 +0200 |
commit | 501bd0166eb949820c8e4204e62aaee5c89c84d9 (patch) | |
tree | 5761006be8e824e2b8b7388caa87bd5e8989b7cd /kernel/fork.c | |
parent | selftests: pidfd: Fix undefined reference to pthread_create() (diff) | |
download | linux-501bd0166eb949820c8e4204e62aaee5c89c84d9.tar.xz linux-501bd0166eb949820c8e4204e62aaee5c89c84d9.zip |
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/fork.c')
-rw-r--r-- | kernel/fork.c | 11 |
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) return true; } +/** + * clone3 - create a new process with specific properties + * @uargs: argument structure + * @size: size of @uargs + * + * clone3() is the extensible successor to clone()/clone2(). + * It takes a struct as argument that is versioned by its size. + * + * Return: On success, a positive PID for the child process. + * On error, a negative errno number. + */ SYSCALL_DEFINE2(clone3, struct clone_args __user *, uargs, size_t, size) { int err; |