"what" is the preferred approach. Looking with strings or for modinfo
string data is probably not ideal, and won't work for most ON drivers.
-- Garrett
James C. McPherson wrote:
> Javen Wu wrote:
>
>> As I knew, there is no utility to print the driver version for nonloaded
>> driver.
>> But we do have a way to get the version if you know the driver version
>> string format. See below example:
>> ======%<====
>>
>> bash-3.2# strings /kernel/drv/lsimega | grep LSI
>> Copyright (C) 2004 LSI Logic Corporation. All rights reserved.
>> LSI MegaRAID 2.05.06 <==== there is driver version
>> =====%<====
>>
>
> You could also use the "what" utility
>
> $ /usr/ccs/bin/what /kernel/drv/mpt
> /kernel/drv/mpt:
> MPTFW-01.03.48.32-IT
> LSI Logic
> MPTFW-01.03.48.32-IM
> LSI Logic �[
> SunOS 5.11 snv_93 January 2008
>
>
> This shows that my installed 32bit mpt driver version is
> from build 93.
>
>
> James C. McPherson
> --
> Senior Kernel Software Engineer, Solaris
> Sun Microsystems
> http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog
> _______________________________________________
> 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