tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Waiting for 'high priority' events with kqueue



In article <CAEnbY+cOA+=gSdrt_BDESDj0sfjvjcwLjeraGbK4yyQ8_6dpZw%mail.gmail.com@localhost>,
Daurnimator  <quae%daurnimator.com@localhost> wrote:
>
>Ah, you're possibly right about it missing on FreeBSD, I got confused :P
>
>On OSX though, poll() with POLLPRI is actually implemented **using**
>kqueue with EV_OOBAND.
>See:
>http://fxr.watson.org/fxr/source/bsd/kern/sys_generic.c?v=xnu-1699.24.8#L149

The only "high priority events" are socket out of band data.
EV_OOB is only used in 3 c files:

http://fxr.watson.org/fxr/ident?v=xnu-2050.18.24&i=EV_OOB

It is simple enough for us to do the same if that's useful.

christos



Home | Main Index | Thread Index | Old Index