Re: can application find out the physical address of it's buffer ?
- From: Roberto Waltman <usenet@xxxxxxxxxxxx>
- Date: Thu, 10 May 2007 09:39:32 -0400
Andray Kaganovsky <andrayk@xxxxxxxxxxx> wrote:
...
I am writing user-space application, and I need to allocate moderately
sized (few KBytes) buffer in such a way that my application knows
which physical address the allocated buffer resides at.
The related question is, how can I lock the allocated buffer in RAM
so that it will not be swapped out when my application exhaust it's
time slice and is scheduled off the CPU, and will still be at
the same physical address when my application will get back on the
CPU.
I would work on the opposite direction: Reserve an area in physical
memory for your buffer, and map it into the application's virtual
memory using mmap().
The first step could be done by telling the kernel that it has less
memory than what is physically available and using areas beyond that
value for the buffer.
Roberto Waltman
[ Please reply to the group,
return address is invalid ]
.
- References:
- can application find out the physical address of it's buffer ?
- From: Andray Kaganovsky
- can application find out the physical address of it's buffer ?
- Prev by Date: Re: Problem in upgrading to 2.6 kernel
- Next by Date: Re: Help with using JFFS2 as root filesystem
- Previous by thread: Re: can application find out the physical address of it's buffer ?
- Next by thread: Vista USB driver signing
- Index(es):
Relevant Pages
|