How to get current core id in kernel source
Aug. 6, 2011
10:12 a.m.
Hi, everyone I wish to get the current core id in which the code is being processed, in device driver code. What function or global variable can I use ? Thanks in advance. Best Regards, J.Hwan Kim
Aug. 6, 2011
10:20 a.m.
Hello,
I wish to get the current core id in which the code is being processed, in device driver code. What function or global variable can I use ?
I think smp_processor_id is the function you are looking for ([1]). thanks, Daniel. [1] http://lxr.linux.no/linux+v3.0/include/linux/smp.h#L170
5487
Age (days ago)
5487
Last active (days ago)
1 comments
2 participants
participants (2)
-
Daniel Baluta -
J.Hwan Kim