changing rt_priority of kenel thread in module...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
 
I launched a kernel thread from my module and tying to change the rt_priority of the thread.
Is there any kernel API's that serve for this purpose? I didn't find any yet.
 
but there's a system call which acts exactly what i want.
However, as far as I know, using system call within a module is not allowed.
so i can't do below, right?
   sched_setscheduler(pid, SCHED_FIFO, rt_priority_value);
 
somebody says using syscall is made possible by adding,
#define __KERNEL_SYSCALLS__ and setfs(KERNEL_DS);
 
but including /usr/include/(systemcall_header) causes errors. (where i have to use /usr/src/linux/include)
 
I also tried utilizing stuffs in sys_sched_setscheduler in kernel sources, but it has things like global lock variables that are not exported by kernel. So I can't use it in my module.
 
What should I do now?
Thanks a lot in advance.
 
 
 

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux