Date: Thu, 27 Oct 2005 20:52:50 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: dinesh@alphaque.com Cc: freebsd-hackers@freebsd.org, scottl@samsco.org Subject: Re: locking in a device driver Message-ID: <20051027.205250.55834228.imp@bsdimp.com> In-Reply-To: <4361044B.50807@alphaque.com> References: <4360B8EE.4070605@alphaque.com> <4360DD7B.20900@samsco.org> <4361044B.50807@alphaque.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <4361044B.50807@alphaque.com> Dinesh Nair <dinesh@alphaque.com> writes: : the userland application uses pthreads, and works like a charm both on 4.x : and 5.x without using the device. however, when the device is used, it : somehow has synchronization errors on 4.x, leading to timers (created in : the userland app) timing out and the like. libc_r will block all other threads in the application while an ioctl executes. libpthread and libthr won't. I've had several bugs at work that can be traced to faulty drivers and/or faulty APIs that were specified by people who were unaware of this issue... Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051027.205250.55834228.imp>