locking in a device driver
Dinesh Nair
dinesh at alphaque.com
Wed Nov 2 12:55:47 PST 2005
On 11/03/05 04:27 M. Warner Losh said the following:
> that this is the case: sleep in an ioctl, and the entire process hangs
> until the ioctl returns.
which is probably what's happening in my case. i've got 4 threads spun off,
and one thread reads what the other writes and vice versa. after writing, a
thread goes off into an ioctl or a read where a tsleep() is executed. this
would block the reader thread as well if libc_r were to be used, as is what
i am using.
--
Regards, /\_/\ "All dogs go to heaven."
dinesh at 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 |
+=========================================================================+
More information about the freebsd-hackers
mailing list