How to know __FreeBSD_version for a symbol

Hooman Fazaeli hoomanfazaeli at gmail.com
Mon Aug 13 08:24:51 UTC 2012


Hi hackers

In the process of back porting drivers to older freebsd versions,
We sometimes need to add suitable '#if __FreeBSD_version >= xxxxx ... else ... '
directives to the source to use an alternate function or exclude certain
statements, defines, etc.

What is the best (quick/reliable) way to know in which __FreeBSD_version
a symbol (function, struct member, macro, ...) has been first introduced?



More information about the freebsd-hackers mailing list