Subject: CVS commit: syssrc/sys
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 03/08/2002 23:42:00
Module Name: syssrc
Committed By: thorpej
Date: Fri Mar 8 21:42:00 UTC 2002
Modified Files:
syssrc/sys/kern: subr_pool.c
syssrc/sys/sys: pool.h
Log Message:
Add an optional "drain" client callback, which can be set by the new
pool_set_drain_hook(). This hook is called in three cases:
* When a pool has hit the hard limit, just before either erroring
out or sleeping.
* When a backend allocator fails to allocate memory.
* Just before trying to reclaim pages in pool_reclaim().
This hook requests the client to try and free some items back to
the pool.
From art@openbsd.org.
To generate a diff of this commit:
cvs rdiff -r1.67 -r1.68 syssrc/sys/kern/subr_pool.c
cvs rdiff -r1.30 -r1.31 syssrc/sys/sys/pool.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.