summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcess.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-04-17 19:04:04 +0200
committercgzones <cgzones@googlemail.com>2024-04-06 19:42:28 +0200
commit48181bc237d2b3118b6fb06b82e427082a92e0e7 (patch)
treee745b4138715a958b5efd817530dc3b92da8d69e /linux/LinuxProcess.c
parentb4d5b5cea98f557a856c89500dc169f511a2b817 (diff)
Linux: update gathering information regarding threads
Document for each block gathering information about a task whether the information is shared for the whole process or specific to a single userland thread. Also avoid system calls for process-shared information and reuse the information from the main task.
Diffstat (limited to 'linux/LinuxProcess.c')
-rw-r--r--linux/LinuxProcess.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c
index 5ba305ec..b97a9ad7 100644
--- a/linux/LinuxProcess.c
+++ b/linux/LinuxProcess.c
@@ -154,6 +154,9 @@ static int LinuxProcess_effectiveIOPriority(const LinuxProcess* this) {
#define SYS_ioprio_set __NR_ioprio_set
#endif
+/*
+ * Gather I/O scheduling class and priority (thread-specific data)
+ */
IOPriority LinuxProcess_updateIOPriority(Process* p) {
IOPriority ioprio = 0;
// Other OSes masquerading as Linux (NetBSD?) don't have this syscall