Neelam wrote:
> I incorporated the structures. But whenever I try to add the driver, it 
> crashes the kernel and reboots the machine!!
>   

Welcome to kernel/driver development.  I'd recommend doing mdb -K  to 
start the kernel debugger before adding your driver (or boot using 
kmdb.  Details are posted elsewhere.)

I strongly suggest at this point that you spend some quality time with 
the documented called "Writing Device Drivers".  It is located on the 
docs.sun.com.  Look in the Solaris 10 collection, and drill down through 
the Software Development collection.  It will be near the bottom.

There are hints in there about debugging kernel code, as well as hints 
about writing device drivers for specific kinds of devices.  You'll want 
to familiarize yourself with the chapter about Network Drivers, and you 
might want to look at any STREAMs information.  (There is also a whole 
2nd book called STREAMs Programming (IIRC) that also has lots and lots 
of detail about working with STREAMs.  All network drivers are STREAMs 
drivers in Solaris, though GLD shields you from most of the details.)

    -- Garrett
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> opensolaris-code mailing list
> opensolaris-code@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
>
>   

_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to