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

linux kernel, how to loop through all cpus?

$
0
0

I need to loop through each CPU so I can get a per_cpu value from them, but there does not seem to be a for_each_cpu(i) macro in version 2.6.26.5 of the Linux Kernel.

How can I achieve something like the following?

for_each_cpu(i)    per_cpu(vm_event_states, i)

Viewing all articles
Browse latest Browse all 6334

Trending Articles



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