Subject: Re: Moving to struct timespec in the kernel.
To: Jonathan Stone <jonathan@dsg.stanford.edu>
From: Matt Thomas <matt@3am-software.com>
List: tech-kern
Date: 02/22/2005 16:21:52
At 04:11 PM 2/22/2005, Jonathan Stone wrote:
>In message <6.1.2.0.2.20050222155130.04eda440@localhost>,
>Matt Thomas writes:
>
>[...]
>
> >>I'd add one caveat: can you leave select(2) as a syscall?
> >
> >I could but i don't really think it's needed.
>
>[...]
>
> >I created pollcommon and selectcommon which do
> >the majority of the work.
> >
> >For instance, sys_select is reduced to:
>
>
>Hey thanks, that looks great. (I was hoping it'd be that easy :-/).
>I'd still prefer an in-kernel select(2), but if we don't have to copy
>the fdsets (I don't see any reason to, do you?), it's not worth
>arguing about.

I couldn't see any reason to copy the fd_sets.  So I didn't. :)

>Any thoughts on forking out the body of kevent() to support either a
>timespec version, or a FreeBSD/i386-ABI emulation?

I can't imagine it'd be all that difficult.  But I don't know
what the FreeBSD version looks like.


-- 
Matt Thomas                     email: matt@3am-software.com
3am Software Foundry              www: http://3am-software.com/bio/matt/
Cupertino, CA              disclaimer: I avow all knowledge of this message.