[LTP] [PATCH] sched_setaffinity01: Convert docs to docparse
Ma Xinjian
maxj.fnst@fujitsu.com
Mon Sep 2 06:03:10 CEST 2024
Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
---
.../sched_setaffinity/sched_setaffinity01.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/testcases/kernel/syscalls/sched_setaffinity/sched_setaffinity01.c b/testcases/kernel/syscalls/sched_setaffinity/sched_setaffinity01.c
index a56ae1f50..acd9b77be 100644
--- a/testcases/kernel/syscalls/sched_setaffinity/sched_setaffinity01.c
+++ b/testcases/kernel/syscalls/sched_setaffinity/sched_setaffinity01.c
@@ -6,13 +6,15 @@
* Author: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
*/
-/*
- * Description:
+/*\
+ * [Description]
+ *
* Check various errnos for sched_setaffinity():
- * 1) EFAULT, if the supplied memory address is invalid.
- * 2) EINVAL, if the mask doesn't contain at least one permitted cpu.
- * 3) ESRCH, if the process whose id is pid could not be found.
- * 4) EPERM, if the calling process doesn't have appropriate privileges.
+ *
+ * 1. EFAULT, if the supplied memory address is invalid.
+ * 2. EINVAL, if the mask doesn't contain at least one permitted cpu.
+ * 3. ESRCH, if the process whose id is pid could not be found.
+ * 4. EPERM, if the calling process doesn't have appropriate privileges.
*/
#define _GNU_SOURCE
--
2.42.0
More information about the ltp
mailing list