Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6502

how can i get the CPU number of current task (In kernel)?

$
0
0

Is there any way to get CPU number of current task?(What I need is not the number of CPUs the task is running on, but which CPU the task is running on)

This process must be in kernel-level, therefore something like command line won't help.

I am trying to do this by calling kernel functions or using kernel data structures(like task_struct), but I am having trouble.


Viewing all articles
Browse latest Browse all 6502

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>