Rate This Document
Findability
Accuracy
Completeness
Readability

kuaf_ctx_scheduler

Function Usage

Acts as a unified interface at the decision-making layer. It obtains information about the algorithm required by the service and invokes the configuration file module to read configuration files. Then, according to the configured scheduling policy, it invokes bandwidth-based scheduling or ratio-based scheduling, and records scheduling decision-making information in the ctx structure.

Function Syntax

int kuaf_ctx_scheduler(scheduler_ctx *sc_ctx)

Parameters

Parameter

Description

Value Range

Input/Output

sc_ctx

Pointer to the scheduling structure.

The structure is created by the kuaf_ctx_scheduler_create function.

Input/Output

Return Value

  • Success: KUAF_SUCCESS
  • Failure:
    • KUAF_NULL_PTR_ERROR: The input sc_ctx is null.
    • KUAF_ALG_NOT_SUPPORT: The input algorithm type is not supported.
    • KUAF_ALGID_ERROR: The input algorithm ID is not supported.
    • KUAF_STRA_NOT_SUPPORT: The input scheduling policy is not supported.