xref: /xnu-8792.41.9/config/MasterVersion (revision 5c2921b07a2480ab43ec66f5b9e41cb872bc554f)
1*5c2921b0SApple OSS Distributions22.1.0
2*5c2921b0SApple OSS Distributions
3*5c2921b0SApple OSS Distributions# The first line of this file contains the master version number for the kernel.
4*5c2921b0SApple OSS Distributions# All other instances of the kernel version in xnu are derived from this file.
5*5c2921b0SApple OSS Distributions#
6*5c2921b0SApple OSS Distributions# The format of the version number must conform to the version resource format
7*5c2921b0SApple OSS Distributions# as described in TN1132: http://developer.apple.com/technotes/tn/tn1132.html
8*5c2921b0SApple OSS Distributions#
9*5c2921b0SApple OSS Distributions# In particular, the string is formatted as: J[.N[.R[S[L]]]], where:
10*5c2921b0SApple OSS Distributions#  J represents the kernel major version number (integer)
11*5c2921b0SApple OSS Distributions#  N represents the kernel minor version number (integer)
12*5c2921b0SApple OSS Distributions#  R represents the kernel revision number (integer)
13*5c2921b0SApple OSS Distributions#  S represents the kernel build stage (one of "d", "a", "b", or "r")
14*5c2921b0SApple OSS Distributions#  L represents the kernel pre-release level (integer)
15*5c2921b0SApple OSS Distributions#
16*5c2921b0SApple OSS Distributions# The correct way to make use of the kernel version within kernel code or a
17*5c2921b0SApple OSS Distributions# kext is to include libkern/verison.h.  version.h contains defines that can
18*5c2921b0SApple OSS Distributions# be used for build-time version logic and prototypes for variables that can
19*5c2921b0SApple OSS Distributions# be used for run-time version logic.
20