Re: virtual address to vma address

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

 



Hola

On Tue, Apr 17, 2007 at 02:06:55PM +0530, yogeshwar sonawane wrote:
>  This is all correct.
>  But i think the problem put by Thomas is something different.
> 
>  Suppose i have a kernel buffer which is mmaped into user-space.
>  Now inside some ioctl implementation(not in mmap), if I want to find
>  the corresponding user address(mmaped start address) for a kernel
>  buffer start address, is there any kernel function which can be used ?
>  OR
>  Is there any function available for resolving the kernel logical addr
>  to user virt addr translation(if mmaped) ?
>  This is my interpretation.

Yup, that is correct.  I got the VMA all set up through a file op
foo_mmap(), so all is correctly mapped.  What I need is indeed a way to
translate a kernel logical address to its mapped user virtual address.

Ps. Sorry for the extra email to you yogeshwar sonawane, I pressed the
narrow reply key first.

		Thomas

--
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