Processor affinity settings for Linux kernel modules?
Posted
by Stephen Pape
on Stack Overflow
See other posts from Stack Overflow
or by Stephen Pape
Published on 2010-06-13T18:53:17Z
Indexed on
2010/06/13
19:02 UTC
Read the original article
Hit count: 347
In Windows, I can set the processor affinity of driver code using KeSetSystemAffinityThread, and check which processor my code is running on using KeGetCurrentProcessorNumber.
I'm trying to do something similar in a Linux kernel module, but the only affinity calls I can see are for userland processes. Is there any way to do this, so that I can run assembly code on a specific processor? (i.e. sgdt)
© Stack Overflow or respective owner