basic/linux: import ioprio.h from kernel 6.14-rc4

This also fixes the maximum allowed ioprio class: 8 -> 7
This commit is contained in:
Yu Watanabe
2025-03-04 02:24:49 +09:00
parent 87fb62f598
commit e7e91769e8
9 changed files with 149 additions and 101 deletions
+1 -1
View File
@@ -721,7 +721,7 @@ TEST(ioprio_class_from_to_string) {
test_ioprio_class_from_to_string_one("0", IOPRIO_CLASS_NONE, IOPRIO_CLASS_BE);
test_ioprio_class_from_to_string_one("1", 1, 1);
test_ioprio_class_from_to_string_one("7", 7, 7);
test_ioprio_class_from_to_string_one("8", 8, 8);
test_ioprio_class_from_to_string_one("8", -EINVAL, -EINVAL);
test_ioprio_class_from_to_string_one("9", -EINVAL, -EINVAL);
test_ioprio_class_from_to_string_one("-1", -EINVAL, -EINVAL);
}