Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* How to pin memory in a limited physical address range in driver?
@ 1998-02-17  5:00 apachexm
  1998-02-19  5:00 ` Monty Brandenberg
  0 siblings, 1 reply; 2+ messages in thread
From: apachexm @ 1998-02-17  5:00 UTC (permalink / raw)



Can anyone tell me how to pin memory in a limited physical address range
in device driver in Digital UNIX 4.0?
I am learning to develop device driver in Digital UNIX.
One task of the driver is to pre-allocate and then pin memory for
performing DMA operation on it. Because the bits number of DMA
register is limited. We can only use memory below some physical memory.

I have only some documents downloaded from Digital's Web site.
I found in the reference of device driver that contig_malloc() and
MALLOC() can be used to allocate memory in device driver.
But who can tell me in detail the difference between them?

contig_malloc() seems can allocate memory in a limited address range,
but is the address it returns the physical or virtual address?
Should we use contig_malloc() or MALLOC() to allocate memory for
DMA operation?
Can we use vm_map_pageable() to pin memory for a very
long time?
Can anyone tell me how to get detail explanation of the
'type' parameter of contig_malloc() and MALLOC()?

I am new to Digital UNIX. And it is some different than the traditional
SYSV. Sorry for my asking so many questions.

Any help are welcomed! Thanks!

apachexm@usa.net

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-02-19  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-17  5:00 How to pin memory in a limited physical address range in driver? apachexm
1998-02-19  5:00 ` Monty Brandenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox