Add SCML for ioprio_get and ioprio_set

This commit is contained in:
Cautreoxit 2025-12-23 09:46:47 +00:00
parent 7afca00444
commit 8a3b6d93c2
3 changed files with 22 additions and 2 deletions

View File

@ -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 | ✅ | 💯 |

View File

@ -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).

View File

@ -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);