Re: How to find CPU# for a per-cpu variable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To clarify: Is there a way to do this without looping through all
online cpu's, getting their per cpu variable, compare, etc? Any simple
macro that reverses the variable to say which CPU it is for?

thanks,

- KK

--- On Thu, 4/9/08, Krishna Kumar <krikkku@xxxxxxxxx> wrote:

> From: Krishna Kumar <krikkku@xxxxxxxxx>
> Subject: How to find CPU# for a per-cpu variable?
> To: kernelnewbies@xxxxxxxxxxxx
> Cc: krikkku@xxxxxxxxx
> Date: Thursday, 4 September, 2008, 1:47 PM
> Hi,
> 
> There are macros to get a per-cpu address given a cpu# and
> a variable
> name. Is there any way the reverse can be done? Eg, the
> timer->base is
> per cpu. If I have the value of timer->base, can I find
> out which #cpu
> that address belongs to?
> 
> Thanks,
> 
> - KK



      Be the first one to try the new Messenger 9 Beta! Go to http://in.messenger.yahoo.com/win/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux