mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* How to get the processor ID at run-time?
@ 2006-12-28 14:46 Yu-Chen Wu
  2006-12-28 15:19 ` Gerb Stralko
  0 siblings, 1 reply; 2+ messages in thread
From: Yu-Chen Wu @ 2006-12-28 14:46 UTC (permalink / raw)
  To: linux-kernel

Hi all,
	I am writing a kernel module that creates a kernel thread on a SMP
platform.
 How to get the ID of the processor the kernel thread run on? Have any
kernel API?   THX
Raymond




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to get the processor ID at run-time?
  2006-12-28 14:46 How to get the processor ID at run-time? Yu-Chen Wu
@ 2006-12-28 15:19 ` Gerb Stralko
  0 siblings, 0 replies; 2+ messages in thread
From: Gerb Stralko @ 2006-12-28 15:19 UTC (permalink / raw)
  To: Yu-Chen Wu; +Cc: linux-kernel

>   I am writing a kernel module that creates a kernel thread on a SMP
>platform.
>How to get the ID of the processor the kernel thread run on? Have any
>kernel API?   THX
>Raymond

try  smp_processor_id() it returns an unsigned int.

Thanks,

jerry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-28 15:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-28 14:46 How to get the processor ID at run-time? Yu-Chen Wu
2006-12-28 15:19 ` Gerb Stralko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®