我要评分
获取效率
正确性
完整性
易理解

Kunpeng System Class

Obtain the KSL version information.

Avx2kiResult AVX2KI_GetProductVersion(Avx2kiProVersion *packageInfo);

Parameters

Parameter

Description

Value Range

Input/Output

packageInfo

Pointer to the product information structure

The value cannot be NULL.

Output

Return Value

  • Success: AVX2KI_STS_NO_ERR is returned.
  • Failure: An error code is returned.

Error Codes

Error Code

Description

AVX2KI_STS_NULL_PTR_ERR

The Avx2kiProVersion pointer is null.

Example

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "avx2ki.h"
#include "operatoroverload.h"

void GetProductVersionExample()
{
    Avx2kiProVersion versionGet;
    Avx2kiResult result = AVX2KI_GetProductVersion(&versionGet);
    if (result == AVX2KI_STS_NO_ERR) {
        printf("Component Name: %s\n", versionGet.componentName);
        printf("Component Version: %s\n", versionGet.packageVersion);
    }
}

int main(void) {
    GetProductVersionExample();
    return 0;
}

Output:

Component Name: boostkit-ksl-avx2neon
Component Version: 1.0.0

The version number and compile time in the example above are for reference only.