Garrett D'Amore wrote:
> On Tue, 2007-09-11 at 10:22 -0400, Daniel Corbe wrote:
>   
>> You guys are extremely patient with answering these questions, thank
>> you. 
>>
>>
>> I've run into another issue.
>>
>>
>> Running add_drv causes my system to reboot.  I assume it's something
>> I'm doing wrong.  I figured it had something to do with either the
>> attach or getinfo procedures in my driver, and in fact the getinfo
>> procedure is using an uninitialized pointer. 
>>     
>
>
> I don't think getinfo() is the problem... its more likely to be
> attach().  (getinfo() is normally only called as part of Dynamic
> Reconfiguration operation, IIRC.)
>
>       -- Garrett
>   
Actually, getinfo() is called twice on open(2).  Try

# dtrace -n 'pts_devinfo:entry{stack();}'

and then open a new terminal window.  The pts_devinfo() routine is the 
getinfo for the pseudo terminal slave
driver (also a streams driver).

max


_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to