Thread scheduler.
More...
#include <scheduler.h>
|
const char * | name |
|
int(* | init )(void) |
| This function is called to initialize a scheduler.
|
|
void(* | deinit )(void) |
| This function is called to deinitialize a scheduler.
|
|
void(* | balance )(struct spdk_scheduler_core_info *core_info, uint32_t count) |
| Function to balance threads across cores by modifying the value of their lcore field.
|
|
int(* | set_opts )(const struct spdk_json_val *opts) |
| Function to set scheduler parameters like load_limit.
|
|
void(* | get_opts )(struct spdk_json_write_ctx *ctx) |
| Function to get current scheduler parameters like load_limit.
|
|
Thread scheduler.
Functions from this structure are invoked from scheduling reactor.
◆ balance
Function to balance threads across cores by modifying the value of their lcore field.
- Parameters
-
core_info | Structure describing cores and threads on them. |
count | Size of the core_info array. |
◆ get_opts
void(* spdk_scheduler::get_opts) (struct spdk_json_write_ctx *ctx) |
Function to get current scheduler parameters like load_limit.
- Parameters
-
ctx | Pointer to spdk_json_write_ctx struct to be filled with current parameters. |
◆ init
int(* spdk_scheduler::init) (void) |
This function is called to initialize a scheduler.
- Returns
- 0 on success or non-zero on failure.
◆ set_opts
int(* spdk_scheduler::set_opts) (const struct spdk_json_val *opts) |
Function to set scheduler parameters like load_limit.
- Parameters
-
opts | Pointer to spdk_json_val struct containing values of parameters to be set in scheduler. |
The documentation for this struct was generated from the following file: