How can I decide the kernel version?

Yong Fan yong.fan at exar.com
Fri Mar 23 10:48:37 UTC 2012


__FreeBSD_version can work.
Thanks

Yongfan

-----Original Message-----
From: Eitan Adler [mailto:lists at eitanadler.com]
Sent: Thursday, March 22, 2012 10:24 PM
To: Yong Fan
Cc: drivers at FreeBSD.org
Subject: Re: How can I decide the kernel version?

On Thu, Mar 22, 2012 at 11:21 PM, Yong Fan <yong.fan at exar.com> wrote:
> Hi all,
>
> How can I decide the kernel version?
> In linux, I can use LINUX_VERSION_CODE and KERNEL_VERSION(x,y,z).
> Does FreeBSD has such similar MACRO?

 __FreeBSD_version ?
http://www.freebsd.org/doc/en/books/porters-handbook/book.html#FREEBSD-VERSIONS


--
Eitan Adler

The information and any attached documents contained in this message
may be confidential and/or legally privileged.  The message is
intended solely for the addressee(s).  If you are not the intended
recipient, you are hereby notified that any use, dissemination, or
reproduction is strictly prohibited and may be unlawful.  If you are
not the intended recipient, please contact the sender immediately by
return e-mail and destroy all copies of the original message.


More information about the freebsd-drivers mailing list