[PATCH 1/2] fork: add kernel-doc for clone3

From: Christian Brauner
Date: Tue Oct 01 2019 - 07:47:55 EST


Add kernel-doc for the clone3() syscall.

Signed-off-by: Christian Brauner <christian.brauner@xxxxxxxxxx>
---
kernel/fork.c | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/kernel/fork.c b/kernel/fork.c
index 5a0fd518e04e..c819cce9bdd0 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -2590,6 +2590,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;
--
2.23.0