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

Function seldrain

freebsd/kern/sys_generic.c:1768–1781  ·  view source on GitHub ↗

Drain the waiters tied to all the selfd belonging the specified selinfo. */

Source from the content-addressed store, hash-verified

1766
1767/* Drain the waiters tied to all the selfd belonging the specified selinfo. */
1768void
1769seldrain(struct selinfo *sip)
1770{
1771
1772 /*
1773 * This feature is already provided by doselwakeup(), thus it is
1774 * enough to go for it.
1775 * Eventually, the context, should take care to avoid races
1776 * between thread calling select()/poll() and file descriptor
1777 * detaching, but, again, the races are just the same as
1778 * selwakeup().
1779 */
1780 doselwakeup(sip, -1);
1781}
1782
1783/*
1784 * Record a select request.

Callers 12

audit_pipe_freeFunction · 0.85
ptsdrv_freeFunction · 0.85
tty_deallocFunction · 0.85
kqueue_destroyFunction · 0.85
mqueue_freeFunction · 0.85
eventfd_closeFunction · 0.85
pipecloseFunction · 0.85
destroy_vpollinfoFunction · 0.85
sofreeFunction · 0.85
apmdtorFunction · 0.85
tun_destroyFunction · 0.85
bpf_dtorFunction · 0.85

Calls 1

doselwakeupFunction · 0.85

Tested by

no test coverage detected