diff options
author | Alice Frosi <afrosi@redhat.com> | 2023-09-01 10:16:36 +0200 |
---|---|---|
committer | Alice Frosi <afrosi@redhat.com> | 2023-09-01 10:37:04 +0200 |
commit | 59f7f7c241253293c25e001c9340f1deeb138311 (patch) | |
tree | 4be7c160cbec552f5d5d3dcd88e85c1b98407749 /common/gluten.h | |
parent | aecd6adbd2f5ce12437215fe2e64e004d28db86b (diff) | |
download | seitan-59f7f7c241253293c25e001c9340f1deeb138311.tar seitan-59f7f7c241253293c25e001c9340f1deeb138311.tar.gz seitan-59f7f7c241253293c25e001c9340f1deeb138311.tar.bz2 seitan-59f7f7c241253293c25e001c9340f1deeb138311.tar.lz seitan-59f7f7c241253293c25e001c9340f1deeb138311.tar.xz seitan-59f7f7c241253293c25e001c9340f1deeb138311.tar.zst seitan-59f7f7c241253293c25e001c9340f1deeb138311.zip |
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 <afrosi@redhat.com>
Diffstat (limited to 'common/gluten.h')
-rw-r--r-- | common/gluten.h | 3 |
1 files changed, 2 insertions, 1 deletions
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]; |