How can I establish affinity for a processor in a kernel module? There is syscall in user mode sched_setaffinity, but I'm looking for the equivalent of kernel mode.
There is also a feature in the Linux kernel code sched_setaffinity. It is called from a function sys_sched_setaffinitythat is being called system_call. From what seems to be, this is the function I want to use. However, the fact that it has the same name as the system call makes me awkward.
But, as we all know, it's best to just try. So I did, and my module compiled. However, when I try to load the module, it complains that the name sched_setaffinityis undefined.
Any ideas?
source
share