From 59f7f7c241253293c25e001c9340f1deeb138311 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Fri, 1 Sep 2023 10:16:36 +0200 Subject: cooker, seitan: add sched_setscheduler The sched_setscheduler requires to set the pid of the process we want to change the priority, this adds a new metadata for getting the target pid at runtime. Add a couple of syscalls for the scheduler in the string parsing. Signed-off-by: Alice Frosi --- common/gluten.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/gluten.h') diff --git a/common/gluten.h b/common/gluten.h index 6414e20..1f06221 100644 --- a/common/gluten.h +++ b/common/gluten.h @@ -147,7 +147,8 @@ BUILD_BUG_ON(BITS_PER_NUM(CONTEXT_TYPE_MAX) + \ enum metadata_type { UID_TARGET = 0, GID_TARGET = 1, - METADATA_MAX = GID_TARGET, + PID_TARGET = 2, + METADATA_MAX = PID_TARGET, }; extern const char *metadata_type_str[METADATA_MAX + 1]; -- cgit v1.2.3