aboutsummaryrefslogtreecommitdiff
path: root/doc/usage/cmd/coninfo.rst
blob: 76cb6c3329c1e39b2bbeac68181fc91814d9340a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.. SPDX-License-Identifier: GPL-2.0+:

coninfo command
===============

Synopsis
--------

::

    coninfo

Description
-----------

The coninfo command provides a list of available console input and output
devices and their assignment as stdin, stdout, stderr console devices.

If CONFIG_SYS_CONSOLE_IS_IN_ENV=y, the assignment is controlled by the
environment variables stdin, stdout, stderr which contain a comma separated
list of device names.

Example
-------

.. code-block:: console

    => coninfo
    List of available devices
    |-- pl011@9000000 (IO)
    |   |-- stdin
    |   |-- stdout
    |   |-- stderr
    |-- serial (IO)
    |-- usbkbd (I)
    => setenv stdin pl011@9000000,usbkbd
    => coninfo
    List of available devices
    |-- pl011@9000000 (IO)
    |   |-- stdin
    |   |-- stdout
    |   |-- stderr
    |-- serial (IO)
    |-- usbkbd (I)
    |   |-- stdin

Configuration
-------------

The coninfo command is only available if CONFIG_CMD_CONSOLE=y.

Return value
------------

The return value $? is always 0 (true).