Re: getting the cpuid for a userspace process ?
On Tuesday, October 25, 2011 11:06:22 am Luigi Rizzo wrote:
> as the subject says... is there any way to get the current
> CPU id for a userspace process (of course,
> valid only at the time the function is called as the
> process might be arbitrarily moved while it runs)
Not from userland, no. On x86 you can use cpuid to fetch the APIC ID, but
that does not map 1:1 to FreeBSD cpu IDs.
--
John Baldwin
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 4 之 7 篇):