version 1.21.2.3, 1999/06/24 16:14:35 |
version 1.24, 1999/04/29 17:47:19 |
|
|
* POSSIBILITY OF SUCH DAMAGE. |
* POSSIBILITY OF SUCH DAMAGE. |
*/ |
*/ |
|
|
|
#include "opt_poollog.h" |
|
|
#include <sys/param.h> |
#include <sys/param.h> |
#include <sys/systm.h> |
#include <sys/systm.h> |
#include <sys/proc.h> |
#include <sys/proc.h> |
Line 313 pool_create(size, align, ioff, nitems, w |
|
Line 315 pool_create(size, align, ioff, nitems, w |
|
pool_destroy(pp); |
pool_destroy(pp); |
return (NULL); |
return (NULL); |
} |
} |
int s; |
|
} |
} |
s = splhigh(); |
|
|
|
splx(s); |
|
return (pp); |
return (pp); |
} |
} |
|
|
Line 1051 pool_catchup(pp) |
|
Line 1050 pool_catchup(pp) |
|
void |
void |
pool_setlowat(pp, n) |
pool_setlowat(pp, n) |
pool_handle_t pp; |
pool_handle_t pp; |
int s, n; |
int n; |
{ |
{ |
int error; |
int error; |
|
|
simple_lock(&pp->pr_slock); |
simple_lock(&pp->pr_slock); |
s = splhigh(); |
|
|
|
splx(s); |
|
pp->pr_minitems = n; |
pp->pr_minitems = n; |
pp->pr_minpages = (n == 0) |
pp->pr_minpages = (n == 0) |
? 0 |
? 0 |