Allocating Page Aligned Memory in User Space
From: LegoGT (legoburns_at_yahoo.com)
Date: 08/21/03
- Previous message: Jitesh K Patil, Systems Engineer, Wipro Technologies.: "problem using rpm package"
- Next in thread: Kasper Dupont: "Re: Allocating Page Aligned Memory in User Space"
- Reply: Kasper Dupont: "Re: Allocating Page Aligned Memory in User Space"
- Reply: Amit Phansalkar: "Re: Allocating Page Aligned Memory in User Space"
- Reply: Thomas Richter: "Re: Allocating Page Aligned Memory in User Space"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Aug 2003 07:36:32 -0700
I have a program that I'm writing to interface with a driver that
controls an IO board. In order to take the data from the driver and
DMA it to another IO device (IDE drive) I need to have the data DMA
page aligned. So, I'm pretty sure it can be a 32-bit address, but the
data needs to be on a 64k boundary along with the PRD (Physical Region
Descriptor) entries which will hold pointers to these data chunks.
Does anyone know how to allocate memory like this without having to
write a (kernel level) driver? Are there certain files or steps I
need to look at in order to have this kernel functionality? (I know
that it's possible using kmalloc, but I'm not quite sure how to use
that from a program -- even if it's run as root.)
Thanks,
Greg
- Previous message: Jitesh K Patil, Systems Engineer, Wipro Technologies.: "problem using rpm package"
- Next in thread: Kasper Dupont: "Re: Allocating Page Aligned Memory in User Space"
- Reply: Kasper Dupont: "Re: Allocating Page Aligned Memory in User Space"
- Reply: Amit Phansalkar: "Re: Allocating Page Aligned Memory in User Space"
- Reply: Thomas Richter: "Re: Allocating Page Aligned Memory in User Space"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|