Skip to content

Commit 501bd01

Browse files
author
Christian Brauner
committed
fork: add kernel-doc for clone3
Add kernel-doc for the clone3() syscall. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 3969e76 commit 501bd01

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

kernel/fork.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2604,6 +2604,17 @@ static bool clone3_args_valid(const struct kernel_clone_args *kargs)
26042604
return true;
26052605
}
26062606

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+
*/
26072618
SYSCALL_DEFINE2(clone3, struct clone_args __user *, uargs, size_t, size)
26082619
{
26092620
int err;

0 commit comments

Comments
 (0)