Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Nov 2005 02:23:32 +0800
From:      Dinesh Nair <dinesh@alphaque.com>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: locking in a device driver
Message-ID:  <43690424.1040904@alphaque.com>
In-Reply-To: <20051027.205250.55834228.imp@bsdimp.com>
References:  <4360B8EE.4070605@alphaque.com>	<4360DD7B.20900@samsco.org>	<4361044B.50807@alphaque.com> <20051027.205250.55834228.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 10/28/05 10:52 M. Warner Losh said the following:
> 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

so if the userland thread does an ioctl, and the the driver goes to 
tsleep() when the ioctl is received, all other threads are also blocked 
from executing, i.e wont be context switched to run ?

is this behaviour only 4.x specific or is it also there in 5.x ?

-- 
Regards,                           /\_/\   "All dogs go to heaven."
dinesh@alphaque.com                (0 0)    http://www.alphaque.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do                                        |
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done                                                              |
+=========================================================================+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43690424.1040904>