Re: FOR REVIEW: New x86-64 vsyscall vgetcpu()

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

 



On Fri, 16 Jun 2006, Zoltan Menyhart wrote:

Jes Sorensen wrote:
 Zoltan Menyhart wrote:

> Just to make sure I understand it correctly...
> Assuming I have allocated per CPU data (numa control, etc.) pointed at > by:


 I think you misunderstood - vgetcpu is for userland usage, not within
 the kernel.

 Cheers,
 Jes

I did understand it as a user land stuff.
This is why I want to map the current task structure into the user space.
In user code, we could see the actual value of the "current->thread_info.cpu".
My "#define current ((struct task_struct *) 0x...)" is not the same as
the kernel's one.

I think it's probably best to leave most of the stuff in task_struct private (ie, mapped in kernel only).

Thanks,

Zoltan

Thanks,
Chase
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux