Re: Access User address from kernel thread

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

 



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

Attachment: signature.asc
Description: Digital signature


[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