From b94c7cf9f978aee329de105dc4706b8d3e05a4cc Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Fri, 26 Jul 2024 14:03:23 -0400 Subject: [PATCH] doc: clarifiy EINVAL/EBUSY errors with an active registration Clarify that EBUSY will only be returned when the rseq syscall is called with the same arguments as the active registration. If any argument differs, EINVAL wil be returned instead. Change-Id: I3b6a8d971489e3fc64daf85484ae8e1b8143b1d3 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- doc/man/rseq.2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/man/rseq.2 b/doc/man/rseq.2 index 5e2f955..d4b4dc7 100644 --- a/doc/man/rseq.2 +++ b/doc/man/rseq.2 @@ -432,7 +432,9 @@ contains an invalid value, or .I rseq contains an address which is not appropriately aligned, or .I rseq_len -contains an incorrect size. +contains an incorrect size, or restartable sequence is already +registered for this thread and at least one argument differs from the +active registration. .TP .B ENOSYS The @@ -444,7 +446,8 @@ system call is not implemented by this kernel. is an invalid address. .TP .B EBUSY -Restartable sequence is already registered for this thread. +Restartable sequence is already registered for this thread and all arguments +are the same as the active registration. .TP .B EPERM The -- 2.34.1