| 656 | } |
| 657 | |
| 658 | void |
| 659 | pipeselwakeup(struct pipe *cpipe) |
| 660 | { |
| 661 | |
| 662 | PIPE_LOCK_ASSERT(cpipe, MA_OWNED); |
| 663 | if (cpipe->pipe_state & PIPE_SEL) { |
| 664 | selwakeuppri(&cpipe->pipe_sel, PSOCK); |
| 665 | if (!SEL_WAITING(&cpipe->pipe_sel)) |
| 666 | cpipe->pipe_state &= ~PIPE_SEL; |
| 667 | } |
| 668 | if ((cpipe->pipe_state & PIPE_ASYNC) && cpipe->pipe_sigio) |
| 669 | pgsigio(&cpipe->pipe_sigio, SIGIO, 0); |
| 670 | KNOTE_LOCKED(&cpipe->pipe_sel.si_note, 0); |
| 671 | } |
| 672 | |
| 673 | /* |
| 674 | * Initialize and allocate VM and memory for pipe. The structure |
no test coverage detected