locking in a device driver

Scott Long scottl at samsco.org
Tue Nov 1 08:04:19 PST 2005


Dinesh Nair wrote:
> 
> 
> On 10/28/05 16:40 Dinesh Nair said the following:
> 
>>
>>
>> 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
>>
>>
>>
>> which is a Good Thing(tm) indeed for me on 4.x.
> 
> 
> which may not be a Good Thing(tm) after all. this could be causing the 
> problem i'm seeing with the driver on 4.x. any methods to get around 
> this, short of not using threads ?
> 

I think this thread has gone too far into hyperbole and conjecture. 
What is your code trying to do, and what problems are you seeing?

Scott


More information about the freebsd-hackers mailing list