-/* $OpenBSD: sys_pipe.c,v 1.144 2023/02/10 14:34:17 visa Exp $ */
+/* $OpenBSD: sys_pipe.c,v 1.145 2023/02/12 10:41:00 mvs Exp $ */
/*
* Copyright (c) 1996 John S. Dyson
struct pool pipe_pair_pool;
int dopipe(struct proc *, int *, int);
-void pipeselwakeup(struct pipe *);
+void pipe_wakeup(struct pipe *);
int pipe_create(struct pipe *);
void pipe_destroy(struct pipe *);
}
void
-pipeselwakeup(struct pipe *cpipe)
+pipe_wakeup(struct pipe *cpipe)
{
rw_assert_wrlock(cpipe->pipe_lock);
}
if (rpipe->pipe_buffer.size - rpipe->pipe_buffer.cnt >= PIPE_BUF)
- pipeselwakeup(rpipe);
+ pipe_wakeup(rpipe);
rw_exit_write(rpipe->pipe_lock);
return (error);
* We have no more space and have something to offer,
* wake up select/poll.
*/
- pipeselwakeup(wpipe);
+ pipe_wakeup(wpipe);
wpipe->pipe_state |= PIPE_WANTW;
error = pipe_iosleep(wpipe, "pipewr");
getnanotime(&wpipe->pipe_mtime);
/* We have something to offer, wake up select/poll. */
if (wpipe->pipe_buffer.cnt)
- pipeselwakeup(wpipe);
+ pipe_wakeup(wpipe);
rw_exit_write(lock);
return (error);
rw_enter_write(cpipe->pipe_lock);
- pipeselwakeup(cpipe);
+ pipe_wakeup(cpipe);
sigio_free(&cpipe->pipe_sigio);
/*
/* Disconnect from peer. */
if ((ppipe = cpipe->pipe_peer) != NULL) {
- pipeselwakeup(ppipe);
+ pipe_wakeup(ppipe);
ppipe->pipe_state |= PIPE_EOF;
wakeup(ppipe);