MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pipeselwakeup

Function pipeselwakeup

freebsd/kern/sys_pipe.c:658–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658void
659pipeselwakeup(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

Callers 4

pipe_readFunction · 0.85
pipe_direct_writeFunction · 0.85
pipe_writeFunction · 0.85
pipecloseFunction · 0.85

Calls 2

selwakeuppriFunction · 0.85
pgsigioFunction · 0.70

Tested by

no test coverage detected