Date: Mon, 22 Jul 2002 11:42:53 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: freebsd <freebsd@epx.com> Cc: net@freebsd.org Subject: Re: Multi-threaded drivers? Message-ID: <Pine.BSF.4.21.0207221138530.5392-100000@InterJet.elischer.org> In-Reply-To: <200207221338.g6MDc4200667@exchange.epx.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Yes and no.. it has 2 'threads' (if you decide to interpret it that way). One runs at the time of the interrupt. and receives the packet, and possibly gets another to transmit if the transmit buffer has room. The other runs at other times and passes the packet through the IP stack. It also queues packets ready to transmit.. it's not actually a threaded driver, but it has some of the characteristics of one. The two threads of control are independent and need to have locking to stop them colliding. The locking is in th e form of spl() calls in -stable. In -current it's more complicated.. On Mon, 22 Jul 2002, freebsd wrote: > Sorry, I'm not a programmer. Can anyone tell me if the 'dc' driver is > multithreaded? > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0207221138530.5392-100000>