
Originally Posted by
testspeech12
Do SUSE provide release version macro to check supported kernel API's.
There is no way to check for "supported kernel APIs" for the simple reason - there is no definitive list of APIs and their versions.
RHEL also does same but RHEL provide "RHEL_RELEASE_VERSION" macro to check supported API version.
You are mistaken. Macro RHEL_RELEASE_VERSION has nothing to do with kernel API. As its name suggests, it is simply version of RHEL for which this kernel was built. Nothing more. It tells you nothing about whether some kernel API was changed in this particular kernel or whether kernel APIs in RHEL_RELEASE_VERSION 1794 are actually compatible to (or are super set or subset of) kernel APIs in RHEL_RELEASE_VERSION 1793.
Does SUSE also have any such macro to get released version?
If all that you are after is (open)SUSE distribution version number:
Code:
## SUSE Release Details
#
CONFIG_SUSE_PRODUCT_SLE=y
# CONFIG_SUSE_PRODUCT_OPENSUSE_LEAP is not set
# CONFIG_SUSE_PRODUCT_OPENSUSE_TUMBLEWEED is not set
CONFIG_SUSE_PRODUCT_CODE=1
CONFIG_SUSE_VERSION=15
CONFIG_SUSE_PATCHLEVEL=2
CONFIG_SUSE_AUXRELEASE=0
CONFIG_SUSE_KERNEL_SUPPORTED=y
# CONFIG_SUSE_KERNEL_RELEASE is not set
# end of SUSE Release Details
Bookmarks