On Thu, Jan 17, 2002 at 10:23:17AM +0900, shkim7 wrote: > sched_setscheduler(pid, SCHED_FIFO, rt_priority_value); > > somebody says using syscall is made possible by adding, > #define __KERNEL_SYSCALLS__ and setfs(KERNEL_DS); Rather than try to use the syscall directly, why not try to find the sys_sched_setscheduler function (or its equivalent) in the kernel source code, and see what it does? It might just copy over some parameters, and then call something like __set_sched ... When in kernel space, you aren't always restricted to the interfaces that userspace programs are limited to. Cheers! :) -- "In God we trust, all others we monitor." -- NSA, Intercept Operators's motto, 1970
Attachment:
pgp00019.pgp
Description: PGP signature