* How to get current core id in kernel source
@ 2011-08-06 10:12 J.Hwan Kim
2011-08-06 10:20 ` Daniel Baluta
0 siblings, 1 reply; 2+ messages in thread
From: J.Hwan Kim @ 2011-08-06 10:12 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* How to get current core id in kernel source
2011-08-06 10:12 How to get current core id in kernel source J.Hwan Kim
@ 2011-08-06 10:20 ` Daniel Baluta
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Baluta @ 2011-08-06 10:20 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-06 10:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-06 10:12 How to get current core id in kernel source J.Hwan Kim
2011-08-06 10:20 ` Daniel Baluta
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.