how to retrieve the struct task_struct currently running on a CPU without using get_current()

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

 



How to retrieve the struct task_struct currently running on a CPU
without using get_current().

In fact, on most architectures, get_current() relies on the
stack-pointer register, but in a situation where the stack-pointer
register is not set to the stack of the current task on a CPU, how can
one retrieve the task currently running on that CPU ?

Is the answer reading it directly from the CPU running queue ? if yes,
what function can be used ?



[Index of Archives]     [Audio]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux