Quantcast
Channel: glibc – SysTutorials
Viewing all articles
Browse latest Browse all 13

How to use ioprio_set in linux c

$
0
0

Since there is no glibc wrapper for ioprio_set in linux c, we need to call this API with some definition. Using syscall in linux as follows. syscall(SYS_ioprio_set, IOPRIO_WHO_PROCESS, pid, IOPRIO_PRIO_CLASS(IOPRIO_CLASS_IDLE)); Some other definitions to declare above macros. 69 enum { 70 IOPRIO_CLASS_NONE, 71 IOPRIO_CLASS_RT, 72 IOPRIO_CLASS_BE, 73 IOPRIO_CLASS_IDLE, 74 }; 75 76 enum { 77 […]

The post How to use ioprio_set in linux c is from SysTutorials.


Viewing all articles
Browse latest Browse all 13

Trending Articles