Re: Access User address from kernel thread

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

 



The goal is to have a faster access to an user address from the kernel space directly.Something faster than a system call.If i can access the user  address from  the kernel , it can be faster .
Thanks for your patience,
Karthik

Erik Mouw <mouw@xxxxxxxxxxxx> wrote:
A: http://en.wikipedia.org/wiki/Top_post
Q: Were do I find info about this thing called top-posting?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I leave quotations after my reply?

On Thu, Jan 18, 2007 at 08:23:03AM -0800, Karthik.G. wrote:
> I would like to access the specific user location from the kernel thread.

Yes, but *why*?

> Can I temprorily map the specific page in the user process to the
> kernel thread and read/write its contents?

Not without major problems as you just found out. Apart from the
mapping problem, there are lots of other problems as well: if you're
using an SMP machine or have a preemptible kernel, the specific page
you just mapped might be taken away (unmapped, moved to swap).

> Im supposed to have a kernel thread running in one of my processors
> while it accesses the currently executing user process in another
> processor to do this . :(

Why? Please describe the ultimate goal, not the step you're trying to
take right now. See http://catb.org/~esr/faqs/smart-questions.html#goal .


Erik
--
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery


Everyone is raving about the all-new Yahoo! Mail beta.

[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