tech-kern archive

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

selinit/seldestroy and selwakeup/selnotify



Hello,

Here is the patch which does the following things:

- Merges selwakeup() and selnotify() calls into a single selnotify(). This
  had to be done since invention of kqueue.

- Adds an additional 'events' argument to selnotify() call. It will indicate
  which event (POLL_IN, POLL_OUT, etc) happen. Zero may be used if unknown.
  I have converted socket and pipe code to pass the appropriate value, most
  of the other code pass zero. It will be used later for select/poll
  optimizations (in ideal case, all code should be converted to pass
  appropriate events value).

- Adds a lot of missing selinit/seldestroy calls in entire tree. Because
  change is not small, it may potentially break something. However, it should
  be easy to find the regression.

http://www.netbsd.org/~rmind/sel_changes.diff

Please review.

-- 
Best regards,
Mindaugas
www.NetBSD.org


Home | Main Index | Thread Index | Old Index