From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4730B27F.7030608@gmail.com> Date: Tue, 6 Nov 2007 13:29:19 -0500 From: Robert William Fuller User-Agent: Thunderbird 2.0.0.6 (X11/20071011) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] Memory management questions/not plan-9 specific References: <11F071B3-1B01-4272-9EA4-1C2BD50BCC0B@telus.net> In-Reply-To: <11F071B3-1B01-4272-9EA4-1C2BD50BCC0B@telus.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: eb6578ec-ead2-11e9-9d60-3106f5b1d025 Paul Lalonde wrote: > I have an application I'm building which requires OS support to allow a > user-space function to fill a page on page-faults. Ideally, I could > reserve a chunk of address space but not back it with memory, and then > on fault my handler would serve out data from some small cache of > user-managed physical pages. > > My google-fu has been weak in finding such a system-level API in any > OS. Has this got a name I should be searching on? I can't believe > no-one has implemented user-level page replacement. In UNIX, set up a signal handler for SIGSEGV.