Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Dec 2001 23:17:58 -0600
From:      Alfred Perlstein <bright@mu.org>
To:        David Xu <davidx@viasoft.com.cn>
Cc:        Nicolas Souchu <nsouch@fr.alcove.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: kld VM pager
Message-ID:  <20011206231758.J92148@elvis.mu.org>
In-Reply-To: <3C10410E.9040805@viasoft.com.cn>; from davidx@viasoft.com.cn on Fri, Dec 07, 2001 at 12:09:50PM %2B0800
References:  <20011206143022.H13566@cedar.alcove-fr> <3C10410E.9040805@viasoft.com.cn>

next in thread | previous in thread | raw e-mail | index | archive | help
* David Xu <davidx@viasoft.com.cn> [011206 22:15] wrote:
> FreeBSD does not have fault hook available,  all faults are processed in 
> vm_fault.
> I know Linux supports that idea,  you can insert  a  fault hook to 
> monitor some
> address range where fault occurs, and then graphics frame buffer can be 
> supported.

I'm sure one could add a callback in vm_fault without much issue.
However this isn't the point of the hook.  One can insert the
vm object into the vm map, when a fault occurs the vm_fault code
will call the pager handler to service it.

The only good part for having a fault hook in linux is most likely
for debug purposes.

-- 
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'
                           http://www.morons.org/rants/gpl-harmful.php3

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011206231758.J92148>