Date: Thu, 22 May 2003 03:51:19 -0700 From: David Schultz <das@FreeBSD.ORG> To: Peter Edwards <pmedwards@eircom.net> Cc: hackers@FreeBSD.ORG Subject: Re: Question on (ab)using the swap pager and VM Message-ID: <20030522105119.GB931@HAL9000.homeunix.com> In-Reply-To: <20030521180222.0FA3343F3F@mx1.FreeBSD.org> References: <20030521180222.0FA3343F3F@mx1.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 21, 2003, Peter Edwards wrote: > Hi All, > As a programming exercise, I'm trying to write what is in essence > a synthetic filesystem where the synthetic files contain large > amounts of data I want to use a swap pager as a cached store for > the data I'm providing. (ie, it'll be generated in the kernel) Have you taken a look at md(4)? This driver provides the swap-backed functionality you want at the block device level where it should be. If you really want to duplicate the functionality, though, take a look at how md(4) does it. Specifically, look at mdcreate_swap().
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030522105119.GB931>