From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d80989a3981ed030,start X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,d80989a3981ed030,start X-Google-Attributes: gidf678f,public X-Google-Thread: 1164f8,d80989a3981ed030,start X-Google-Attributes: gid1164f8,public From: guido@philos.wh2.tu-dresden.de (Guido Vattrodt) Subject: Problem implementing mmap() on DU4.0 Date: 1996/11/25 Message-ID: <57c5ge$rjf@rks1.urz.tu-dresden.de>#1/1 X-Deja-AN: 198591478 distribution: world organization: Dresden University of Technology keywords: mmap,page frame number reply-to: guido@atlantis.wh2.tu-dresden.de newsgroups: comp.sys.dec,comp.unix.osf.osf1,comp.unix.osf.misc Hi, I have to write a device driver for Digital UNIX 4.0. In order to achieve a low delay while transfering data into the kernel, I would like to map a portion on the kernel-space into the user-space. The DU4.0 documentation says that it is possible using the mmap() interface: ------( manual xxmmap() )-------- .. Return Values The xxmmap interface, if successful, returns the page frame number that corresponds to the page at the byte offset specified by the offset argument. Otherwise, xxmmap returns -1. --------------------------------- My Problem is now: How do I get the "page frame number" of a buffer inside my driver? Unfortunately the manual doesn't contain a code example. Is there anybody who can help me? Thanks in advance, Guido -- +---------------------------------------------------------+ | Guido Vattrodt | | email: guido@atlantis.wh2.tu-dresden.de | +---------------------------------------------------------+