Re: pmap_extract question

2010-03-30 Thread Dr. Baud
ubject: pmap_extract question > To: freebsd-current@freebsd.org > Date: Tuesday, March 30, 2010, 12:35 PM > >     Say I have a kernel module that allocates a > contiguous chunk of kernel physical memory (note that a call > to vtophys() reports a non-zero value): > &g

Re: pmap_extract question

2010-03-30 Thread Ryan Stone
Assuming that you're using the right pmap(it looks like you are, but it depends on the thread context in which you're running), that will only work if the userland application has touched the page and faulted it in. If it's never tried to access the page it will never be mapped into the process's

pmap_extract question

2010-03-30 Thread Dr. Baud
Say I have a kernel module that allocates a contiguous chunk of kernel physical memory (note that a call to vtophys() reports a non-zero value): memory_chunk = contigmalloc(memory_chunk_length, NULL, M_NOWAIT,