Subject: Re: bumping default open descriptors
To: None <tech-kern@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 04/02/2004 22:26:45
> About __svc_clean_idle() (which I haven't looked at), will it ever
> be called on a user-supplied fd set?

No, at least not unless something outside the libc rpc stuff calls it
(which I assume should never happen).

> Symbol versioning will probably cover the problems, though.

As far as I can see, the only exported interface that uses fd_set is
svc_getreqset, and yes, I believe symbol versioning can handle it.

>>> Use kevent().  [...]
>> [...]
> Try looking in /usr/src/lib/libc/sys, specifically at
> /usr/src/lib/libc/sys/kqueue.2, which gets installed as both kqueue.2
> and kevent.2.

Yes, I found that after seeing thorpej's note - I did a full sweep for
*.2 files and grepped them for kevent.  Looks as though it transposes
the complexity matrix, basically.

> Additionally, since there is a timer event filter, you can make it so
> that you don't need to pass in a timeout to the call; you'll just
> have a filter go off each time it expires.

Yes, I noticed that - it would serve many of the same timing ends that
AF_TIMER sockets do....

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B