physical memory for user space application

physical memory for user space application

am 15.11.2005 22:09:13 von daveb_sharp

Hi There,

I want to access the physical memory associated
with a user space application.
From my driver I would like to:
- Lock down a range of memory (ensure that it is
not paged out)
- Get a mapping of the corrosponding phyiscal
memory i.e. I would like to be able to read the
physical memory directly.
- I don't want to use the proc file system.
Can anyone tell me what the fucntions and / or
data structures are to acomplish this?
Cheers
Dave Sharp








__________________________________________________________
Find your next car at http://autos.yahoo.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: physical memory for user space application

am 16.11.2005 05:01:47 von pmanohar

you can use ioctls for tranfering data from user space to kernel space

regards
Manohar.

On Tue, 15 Nov 2005, Dave B. Sharp wrote:

>
> Hi There,
>
> I want to access the physical memory associated
> with a user space application.
> From my driver I would like to:
> - Lock down a range of memory (ensure that it is
> not paged out)
> - Get a mapping of the corrosponding phyiscal
> memory i.e. I would like to be able to read the
> physical memory directly.
> - I don't want to use the proc file system.
> Can anyone tell me what the fucntions and / or
> data structures are to acomplish this?
> Cheers
> Dave Sharp
>
>
>
>
>
>
>
>
> __________________________________________________________
> Find your next car at http://autos.yahoo.ca
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: physical memory for user space application

am 16.11.2005 16:17:18 von daveb_sharp

Hi Manohar,
Thanx, much apreciated. Which driver do I send the
ioctl to? Is it possible to pin down the memory in
question or is that done implicitly? I know in Windoze
this can be done.
Cheers
Dave


--- "P.Manohar"
wrote:

>
> you can use ioctls for tranfering data from user
> space to kernel space
>
> regards
> Manohar.
>
> On Tue, 15 Nov 2005, Dave B. Sharp wrote:
>
> >
> > Hi There,
> >
> > I want to access the physical memory associated
> > with a user space application.
> > From my driver I would like to:
> > - Lock down a range of memory (ensure that it
> is
> > not paged out)
> > - Get a mapping of the corrosponding phyiscal
> > memory i.e. I would like to be able to read the
> > physical memory directly.
> > - I don't want to use the proc file system.
> > Can anyone tell me what the fucntions and / or
> > data structures are to acomplish this?
> > Cheers
> > Dave Sharp
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
__________________________________________________________
> > Find your next car at http://autos.yahoo.ca
> > -
> > To unsubscribe from this list: send the line
> "unsubscribe linux-newbie" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at
> http://www.linux-learn.org/faqs
> >
>







__________________________________________________________
Find your next car at http://autos.yahoo.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs