From 7b9e2ea56000960361671a830d4026263ace5a3c Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Sat, 23 Jun 2001 06:34:38 +0000 Subject: pool_init, not pool_create --- sys/kern/sys_pipe.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys') diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 73e0bc64afe..cdce94ac4c7 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_pipe.c,v 1.34 2001/06/23 06:09:16 art Exp $ */ +/* $OpenBSD: sys_pipe.c,v 1.35 2001/06/23 06:34:37 art Exp $ */ /* * Copyright (c) 1996 John S. Dyson @@ -103,7 +103,7 @@ struct filterops pipe_wfiltops = int nbigpipe; static int amountpipekva; -struct pool *pipe_pool; +struct pool pipe_pool; void pipeclose __P((struct pipe *)); void pipeinit __P((struct pipe *)); @@ -128,9 +128,9 @@ sys_opipe(p, v, retval) struct pipe *rpipe, *wpipe; int fd, error; - rpipe = pool_get(pipe_pool, PR_WAITOK); + rpipe = pool_get(&pipe_pool, PR_WAITOK); pipeinit(rpipe); - wpipe = pool_get(pipe_pool, PR_WAITOK); + wpipe = pool_get(&pipe_pool, PR_WAITOK); pipeinit(wpipe); error = falloc(p, &rf, &fd); @@ -805,7 +805,7 @@ pipeclose(cpipe) cpipe->pipe_buffer.size); #endif } - pool_put(pipe_pool, cpipe); + pool_put(&pipe_pool, cpipe); } } @@ -888,7 +888,7 @@ filt_pipewrite(struct knote *kn, long hint) void pipe_init() { - pipe_pool = pool_create(sizeof(struct pipe), 0, 0, 0, "pipepl", + pool_init(&pipe_pool, sizeof(struct pipe), 0, 0, 0, "pipepl", 0, pool_page_alloc_nointr, pool_page_free_nointr, M_PIPE); } -- cgit v1.2.3