tech-net archive

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

Re: Patch: add directional argument to socket upcall handler

In article <>,
Thor Simon  <> wrote:
>The attached patch adds an argument to socket upcall handlers, so
>they can tell whether they've been called because the socket is
>ready for input or output.  This significantly eases the way for
>in-kernel code that needs to interact with socket flow control,
>such as splice() or things of its ilk.  I think it might also make
>it possible to improve the wakeup mechanism in the NFS code, which
>seems to care whether the socket's come ready for read or write
>when adjusting various timers and handling errors.
>Hastily ported forward from netbsd-5 to -current -- compiles, and
>appears to work (works fine in our netbsd-5 tree).
>Thor Lancelot Simon
>Coyote Point Systems, Inc.                     <>
>Millerton, NY, USA

Looks fine to me.


Home | Main Index | Thread Index | Old Index