Loading...
Searching...
No Matches
spdk_scheduler Struct Reference

Thread scheduler. More...

#include <scheduler.h>

Public Member Functions

 TAILQ_ENTRY (spdk_scheduler) link
 

Data Fields

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.
 

Detailed Description

Thread scheduler.

Functions from this structure are invoked from scheduling reactor.

Field Documentation

◆ balance

void(* spdk_scheduler::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.

Parameters
core_infoStructure describing cores and threads on them.
countSize 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
ctxPointer 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
optsPointer 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:
  • scheduler.h