Version
C++ declarations related to version information.
User-space C++ applications may use this API to retrieve information about
the version of the source code used to build the Cuddl kernel modules and
user-space interface code. The following entities are defined in the
cuddl namespace.
-
class Version
C++ wrapper class for the C-API version macros.
The stream output and comparison operators are overloaded for instances of this class.
-
const Version cuddl::version{CUDDL_VERSION_MAJOR, CUDDL_VERSION_MINOR, CUDDL_REVISION_LEVEL}
C++
Versionclass instance corresponding to theCUDDL_VERSION_CODEC macro.
-
inline Version cuddl::get_kernel_version()
C++ wrapper for
cuddl_get_kernel_version_code()that returns aVersionclass instance.- Throws:
std::system_error – Operation failed.
-
inline std::string cuddl::get_kernel_commit_id()
C++ wrapper for
cuddl_get_kernel_commit_id().- Throws:
std::system_error – Operation failed.
-
inline std::string cuddl::get_userspace_commit_id()
C++ wrapper for
cuddl_get_userspace_commit_id().- Throws:
std::system_error – Operation failed.
-
inline std::string cuddl::get_kernel_variant()
C++ wrapper for
cuddl_get_kernel_variant().- Throws:
std::system_error – Operation failed.