From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,20b5c48bcc4c4594,start X-Google-Attributes: gidfee84,public From: apachexm@usa.net Subject: How to pin memory in a limited physical address range in driver? Date: 1998/02/17 Message-ID: <6cdt1t$ndv$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 326118299 X-Originating-IP-Addr: 202.197.0.183 X-Http-User-Agent: Mozilla/3.04Gold (Win95; I) Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Feb 18 05:54:05 1998 GMT Newsgroups: comp.unix.osf.osf1 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