Embedded Systems
bsdasync.txt
Associated article: Asynchronous Communications Using select and poll
Tags: Embedded Systems
Published source code accompanying the article by Sean Eric Fagan in which he describes how and why the select() and poll() system calls were recently added to FreeBSD.
Asynchronous Communications Using select and poll
by Sean Eric Fagan
Example 1:
if (p->p_wchan == (caddr_t)&selwait) {
if (p->p_stat == SSLEEP)
setrunnable(p);
else
unsleep(p);
} else if (p->p_flag & P_SELECT)
...


