On 11/10/11 03:43 PM, Hansel Chung wrote:
Hi,
I'm very new to driver development, and would like to try my hand at tweaking a
driver in Opensolaris.
I made some changes. But unfortunately, I can't trace any of my work because
cmn_err doesn't appear to post messages anywhere, and I have no idea how to
hook up a debugger to single step through a driver module. I have a feeling
that a message posted to /var/adm/messages resulted from my change, but I don't
actually know for sure.
cmn_err() can go to the log (/var/adm/messages), the console, or both. See its
manpage.
debugger: see kmdb(1).
I'm wondering if anybody has suggestions of references that might help step me
through this.
Note: OpenSolaris isn't my primary environment either, but ZFS is just too cool
to ignore.
You've got access to Writing Device Drivers, I assume?
Thanks!
-Hansel Chung
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss