How to get current core id in kernel source
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
Hello,
Quoted 3 lines
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.