lkml.org 
[lkml]   [2000]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: remap_page_range
Hello,

>
> >suppose i allocate an buffer by calling kmalloc.
>
> >i want to map this buffer to user address space.
> >will remap_page_range will automatically map this
> >buffer to calling process's address space.
>
> it should do if have the struct vm_area_struct of the calling process.
> as far as i know if you implement mmap file operation then this structure
> is there.
>
> but how will one get this structure if one is not using mmap file
> operation??
> Some Linux Guru might be able to tell..
>

As far as I know, there's no way to do this without mmap().

With kiobufs() still being somewhat iffy, it's unfortunate there's
still no good interface to map kernel buffers to user space either...
Something to work on for 2.5 I guess.

--
Eric Lowe
Software Engineer, Systran Corporation
elowe@systran.com


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.033 / U:26.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site