intioprio_get(intwhich,intwho);intioprio_set(intwhich,intwho,intioprio);Note: There are no glibc wrappers for these system calls; see NOTES. DESCRIPTION Theioprio_get() andioprio_set() system calls respectively get and set the I/O scheduling class and priority of one or more threads. The...
编译busybox时出现"ioprio_set" undeclared等错误 $ make meuncnfig >miscutils/ionice.c: In function 'ioprio_set': >miscutils/ionice.c:16: error: 'SYS_ioprio_set' undeclared (first use in >this function) >miscutils/ionice.c:16: error: (Each undeclared identifier is reported >only once >mi...
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));