Polling objectives (was Re: Giant-free polling [PATCH])

Luigi Rizzo rizzo at icir.org
Fri Mar 4 16:08:10 GMT 2005


On Fri, Mar 04, 2005 at 04:32:43PM +0300, dima wrote:
...
> PS: my question about locking in ether_poll_register() is still actual. I think pr[] should be protected by sx while adding a new handler.

ether_poll_register() was called by *foo_intr() so in 4.x it was protected
by splimp() or Giant. It is likely that now, with drivers being
no more under a single lock, you need to protect it as well with
a private lock.

cheers
luigi


More information about the freebsd-net mailing list