DPDK  23.07.0
Functions
cmdline.h File Reference
#include <rte_common.h>
#include <rte_compat.h>
#include <cmdline_rdline.h>
#include <cmdline_parse.h>

Go to the source code of this file.

Functions

__rte_deprecated int cmdline_poll (struct cmdline *cl)
 

Detailed Description

Command line API

Definition in file cmdline.h.

Function Documentation

◆ cmdline_poll()

__rte_deprecated int cmdline_poll ( struct cmdline *  cl)
Deprecated:
Function is broken and scheduled for removal.

This function is nonblocking equivalent of cmdline_interact(). It polls cl for one character and interpret it. If return value is RDLINE_EXITED it mean that cmdline_quit() was invoked.

Parameters
clThe command line object.
Returns
On success return object status - one of enum rdline_status. On error return negative value.