*BSD News Article 32239


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!newsxfer.itd.umich.edu!zip.eecs.umich.edu!yeshua.marcam.com!news.kei.com!travelers.mail.cornell.edu!cornell!gungnir.cs.cornell.edu!vogels
From: vogels@gungnir.cs.cornell.edu (Werner Vogels)
Subject: locking kernel pages (sunos)
Message-ID: <1994Jun29.204353.29366@cs.cornell.edu>
Sender: news@cs.cornell.edu (USENET news user)
Nntp-Posting-Host: gungnir.cs.cornell.edu
Organization: Department of Computer Science, Cornell University
Date: Wed, 29 Jun 1994 20:43:53 GMT
Lines: 13

We're looking for a solution o the following problem. In a device driver
we some pages using kmem_alloc, and afterwards we allow a user process to
mmap these pages. 

What we would like, is to have the driver lock the pages in memory so that
the user process doesn't have to take care of this everytime. In BSD 4.[34]
we would use vm_map_pageable() to manipulate the pages, but as the SunOS's vm
(4.1.3) is not compatible with this we are stuck.

Any help or advise?

--
Werner