EM-ODP 4.4.0
Event Machine on ODP
Loading...
Searching...
No Matches
em_cli.h
Go to the documentation of this file.
1/* Copyright (c) 2021, Nokia
2 * All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef EM_CLI_H_
8#define EM_CLI_H_
9
10#include <event_machine.h>
11
12#pragma GCC visibility push(default)
13
14/**
15 * @file
16 * @defgroup EM CLI (Command Line Interface) related
17 * EM CLI specific helper APIs.
18 * @{
19 *
20 * These helper APIs can be used to start/stop an EM CLI socket server providing
21 * a list of CLI commands, which can be used to get info about EM (e.g. pools,
22 * queues, core map and CPU arch) and info about the underlying ODP instance.
23 * The EM CLI server may be connected to with a telnet client.
24 *
25 * Note that these EM CLI helper APIs must be called after em_init().
26 *
27 * Note that the dependent libcli must be installed to be able to use EM CLI.
28 * libcli can be installed with "sudo apt-get install libcli-dev"
29 *
30 */
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36/**
37 * @brief Initialize the EM CLI (if enabled)
38 *
39 * @return EM_OK if successful.
40 */
42
43/**
44 * @brief Initialize the EM CLI locally on an EM core (if enabled)
45 *
46 * @return EM_OK if successful
47 */
49
50/**
51 * @brief Terminate the EM CLI (if enabled)
52 *
53 * @return EM_OK if successful.
54 */
56
57/**
58 * @brief Terminate the EM CLI locally on an EM core (if enabled)
59 *
60 * @return EM_OK if successful
61 */
63
64#ifdef __cplusplus
65}
66#endif
67
68#pragma GCC visibility pop
69#endif /* EM_CLI_H_ */
em_status_t emcli_init_local(void)
Initialize the EM CLI locally on an EM core (if enabled)
Definition em_cli.c:2455
em_status_t emcli_term(void)
Terminate the EM CLI (if enabled)
Definition em_cli.c:2460
em_status_t emcli_term_local(void)
Terminate the EM CLI locally on an EM core (if enabled)
Definition em_cli.c:2465
em_status_t emcli_init(void)
Initialize the EM CLI (if enabled)
Definition em_cli.c:2450
uint32_t em_status_t