Shreyas Bhatewara <shreyas.bhatewara+opensola...@gmail.com> wrote:

> 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 need this? Solaris implements stable interfaces.

BTW: uname -v (utsname.version) exists since more than 20 years on SunOS.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       j...@cs.tu-berlin.de                (uni)  
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to