Shreyas Bhatewara wrote:
Folks,

I am writing a device driver for current and past versions of (Open)Solaris

How can I check the version of the running kernel in the driver code ? I tried 
using utsname.version (/.release) but it does not exist for Solaris 10 or older 
kernels. Is there any other literal/variable which spans current and old 
Solaris kernels which can give the kernel version/ release information ? For Eg 
: linux has LINUX_VERSION_CODE

Why do you think you need to do that ?

Unlike Linux Solaris has a very very stable API and ABI for device drivers.

See the "Writing Device Drivers" section of the docs.sun.com documentation on Solaris - which applies to OpenSolaris as well.

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

Reply via email to