Re: remapping kernel buffer in VMS of user process

2008-12-01 Thread Alexej Sokolov
On Mon, Dec 01, 2008 at 10:12:09AM -0500, Alexander Kabaev wrote: > On Mon, 1 Dec 2008 02:38:51 +0100 > Alexej Sokolov <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > I would like to remap some buffers allocated in kernel space to memory > > space of certain process. > > > The simplest way is

Re: remapping kernel buffer in VMS of user process

2008-12-01 Thread Alexander Kabaev
On Mon, 1 Dec 2008 02:38:51 +0100 Alexej Sokolov <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to remap some buffers allocated in kernel space to memory > space of certain process. > The simplest way is to expose this buffer through device pager. Implement the driver callback and let us

remapping kernel buffer in VMS of user process

2008-11-30 Thread Alexej Sokolov
Hello, I would like to remap some buffers allocated in kernel space to memory space of certain process. For Example, in attach function of driver: static int driver_attach { ... struct vmspace *vms = some_thread->td_proc->p_vmspace; bufp = malloc (PAGE_SIZE, M_DEVBUF,