libosmovty 1.13.1.1-afb4 Osmocom VTY library

Files | Functions
Configuration

## Files
file | cpu_sched_vty.h
| API to CPU / Threading / Scheduler properties from VTY configuration.

## Functions
void | osmo_cpu_sched_vty_init (void *tall_ctx)
| Initialize sched VTY nodes. More...
int | osmo_cpu_sched_vty_apply_localthread (void)
| Apply cpu-affinity on calling thread based on VTY configuration. More...

## Detailed Description

## Function Documentation

## ◆ osmo_cpu_sched_vty_apply_localthread()

int osmo_cpu_sched_vty_apply_localthread | ( | void |  | ) |

Apply cpu-affinity on calling thread based on VTY configuration.

Returns
  0 on success, non-zero on error.

References cpu_affinity_it::bufname, sched_vty_opts::cpu_affinity_li, sched_vty_opts::cpu_affinity_li_mutex, cpu_affinity_it::cpuset, cpu_affinity_it::cpuset_size, DLGLOBAL, cpu_affinity_it::entry, generate_cpu_hex_mask(), llist_for_each_entry, LOGL_FATAL, LOGP, my_sched_setaffinity(), name, OSMO_ASSERT, SCHED_VTY_THREAD_ALL, SCHED_VTY_THREAD_NAME, SCHED_VTY_THREAD_SELF, and cpu_affinity_it::tid_type.

## ◆ osmo_cpu_sched_vty_init()

void osmo_cpu_sched_vty_init | ( | void * | tall_ctx | ) |

Initialize sched VTY nodes.

Parameters

  [in] | tall_ctx | Talloc context to use internally by vty_sched subsystem.

Returns
  0 on success, non-zero on error.

References CONFIG_NODE, config_write_sched(), sched_vty_opts::cpu_affinity_li, sched_vty_opts::cpu_affinity_li_mutex, get_num_cpus(), INIT_LLIST_HEAD, install_lib_element(), install_lib_element_ve(), install_node(), L_CPU_SCHED_NODE, OSMO_ASSERT, sched_node, and sched_vty_opts::tall_ctx.