diff --git a/book/src/kernel/linux-compatibility/README.md b/book/src/kernel/linux-compatibility/README.md index 9ef0aa595..10511a602 100644 --- a/book/src/kernel/linux-compatibility/README.md +++ b/book/src/kernel/linux-compatibility/README.md @@ -271,8 +271,8 @@ which are summarized in the table below. | 248 | add_key | ❌ | N/A | | 249 | request_key | ❌ | N/A | | 250 | keyctl | ❌ | N/A | -| 251 | ioprio_set | ✅ | ❓ | -| 252 | ioprio_get | ✅ | ❓ | +| 251 | ioprio_set | ✅ | [⚠️](syscall-flag-coverage/file-descriptor-and-io-control/#ioprio_set-and-ioprio_get) | +| 252 | ioprio_get | ✅ | [⚠️](syscall-flag-coverage/file-descriptor-and-io-control/#ioprio_set-and-ioprio_get) | | 253 | inotify_init | ✅ | 💯 | | 254 | inotify_add_watch | ✅ | [⚠️](syscall-flag-coverage/file-systems-and-mount-control/#inotify_add_watch) | | 255 | inotify_rm_watch | ✅ | 💯 | diff --git a/book/src/kernel/linux-compatibility/syscall-flag-coverage/file-descriptor-and-io-control/README.md b/book/src/kernel/linux-compatibility/syscall-flag-coverage/file-descriptor-and-io-control/README.md index 45e00c673..80dd049ed 100644 --- a/book/src/kernel/linux-compatibility/syscall-flag-coverage/file-descriptor-and-io-control/README.md +++ b/book/src/kernel/linux-compatibility/syscall-flag-coverage/file-descriptor-and-io-control/README.md @@ -146,3 +146,18 @@ Supported functionality in SCML: For more information, see [the man page](https://man7.org/linux/man-pages/man2/ioctl.2.html). + +### `ioprio_set` and `ioprio_get` + +Supported functionality in SCML: + +```c +{{#include ioprio_get_and_set.scml}} +``` + +Unsupported selectors: +* `IOPRIO_WHO_PGRP` +* `IOPRIO_WHO_USER` + +For more information, +see [the man page](https://man7.org/linux/man-pages/man2/ioprio_set.2.html). \ No newline at end of file diff --git a/book/src/kernel/linux-compatibility/syscall-flag-coverage/file-descriptor-and-io-control/ioprio_get_and_set.scml b/book/src/kernel/linux-compatibility/syscall-flag-coverage/file-descriptor-and-io-control/ioprio_get_and_set.scml new file mode 100644 index 000000000..c2e9aa739 --- /dev/null +++ b/book/src/kernel/linux-compatibility/syscall-flag-coverage/file-descriptor-and-io-control/ioprio_get_and_set.scml @@ -0,0 +1,5 @@ +// Set the I/O priority for a single thread +ioprio_set(which = IOPRIO_WHO_PROCESS, who, ioprio); + +// Get the I/O priority for a single thread +ioprio_get(which = IOPRIO_WHO_PROCESS, who);