Documentation / ABI / testing / sysfs-tty


Based on kernel version 6.8. Page generated on 2024-03-11 21:26 EST.

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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
What:		/sys/class/tty/console/active
Date:		Nov 2010
Contact:	Kay Sievers <kay.sievers@vrfy.org>
Description:
		 Shows the list of currently configured
		 console devices, like 'tty1 ttyS0'.
		 The last entry in the file is the active
		 device connected to /dev/console.
		 The file supports poll() to detect virtual
		 console switches.

What:		/sys/class/tty/tty<x>/active
Date:		Nov 2010
Contact:	Kay Sievers <kay.sievers@vrfy.org>
Description:
		 Shows the currently active virtual console
		 device, like 'tty1'.
		 The file supports poll() to detect virtual
		 console switches.

What:		/sys/class/tty/ttyS<x>/uartclk
Date:		Sep 2012
Contact:	Tomas Hlavacek <tmshlvck@gmail.com>
Description:
		 Shows the current uartclk value associated with the
		 UART port in serial_core, that is bound to TTY like ttyS0.
		 uartclk = 16 * baud_base

		 These sysfs values expose the TIOCGSERIAL interface via
		 sysfs rather than via ioctls.

What:		/sys/class/tty/ttyS<x>/type
Date:		October 2012
Contact:	Alan Cox <alan@linux.intel.com>
Description:
		 Shows the current tty type for this port.

		 These sysfs values expose the TIOCGSERIAL interface via
		 sysfs rather than via ioctls.

What:		/sys/class/tty/ttyS<x>/line
Date:		October 2012
Contact:	Alan Cox <alan@linux.intel.com>
Description:
		 Shows the current tty line number for this port.

		 These sysfs values expose the TIOCGSERIAL interface via
		 sysfs rather than via ioctls.

What:		/sys/class/tty/ttyS<x>/port
Date:		October 2012
Contact:	Alan Cox <alan@linux.intel.com>
Description:
		 Shows the current tty port I/O address for this port.

		 These sysfs values expose the TIOCGSERIAL interface via
		 sysfs rather than via ioctls.

What:		/sys/class/tty/ttyS<x>/irq
Date:		October 2012
Contact:	Alan Cox <alan@linux.intel.com>
Description:
		 Shows the current primary interrupt for this port.

		 These sysfs values expose the TIOCGSERIAL interface via
		 sysfs rather than via ioctls.

What:		/sys/class/tty/ttyS<x>/flags
Date:		October 2012
Contact:	Alan Cox <alan@linux.intel.com>
Description:
		 Show the tty port status flags for this port.

		 These sysfs values expose the TIOCGSERIAL interface via
		 sysfs rather than via ioctls.

What:		/sys/class/tty/ttyS<x>/xmit_fifo_size
Date:		October 2012
Contact:	Alan Cox <alan@linux.intel.com>
Description:
		 Show the transmit FIFO size for this port.

		 These sysfs values expose the TIOCGSERIAL interface via
		 sysfs rather than via ioctls.

What:		/sys/class/tty/ttyS<x>/close_delay
Date:		October 2012
Contact:	Alan Cox <alan@linux.intel.com>
Description:
		Show the closing delay time for this port in centiseconds.

		These sysfs values expose the TIOCGSERIAL interface via
		sysfs rather than via ioctls.

What:		/sys/class/tty/ttyS<x>/closing_wait
Date:		October 2012
Contact:	Alan Cox <alan@linux.intel.com>
Description:
		Show the close wait time for this port in centiseconds.

		Waiting forever is represented as 0. If waiting on close is
		disabled then the value is 65535.

		These sysfs values expose the TIOCGSERIAL interface via
		sysfs rather than via ioctls.

What:		/sys/class/tty/ttyS<x>/custom_divisor
Date:		October 2012
Contact:	Alan Cox <alan@linux.intel.com>
Description:
		 Show the custom divisor if any that is set on this port.

		 These sysfs values expose the TIOCGSERIAL interface via
		 sysfs rather than via ioctls.

What:		/sys/class/tty/ttyS<x>/io_type
Date:		October 2012
Contact:	Alan Cox <alan@linux.intel.com>
Description:
		 Show the I/O type that is to be used with the iomem base
		 address.

		 These sysfs values expose the TIOCGSERIAL interface via
		 sysfs rather than via ioctls.

What:		/sys/class/tty/ttyS<x>/iomem_base
Date:		October 2012
Contact:	Alan Cox <alan@linux.intel.com>
Description:
		 The I/O memory base for this port.

		 These sysfs values expose the TIOCGSERIAL interface via
		 sysfs rather than via ioctls.

What:		/sys/class/tty/ttyS<x>/iomem_reg_shift
Date:		October 2012
Contact:	Alan Cox <alan@linux.intel.com>
Description:
		 Show the register shift indicating the spacing to be used
		 for accesses on this iomem address.

		 These sysfs values expose the TIOCGSERIAL interface via
		 sysfs rather than via ioctls.

What:		/sys/class/tty/ttyS<x>/rx_trig_bytes
Date:		May 2014
Contact:	Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
Description:
		 Shows current RX interrupt trigger bytes or sets the
		 user specified value to change it for the FIFO buffer.
		 Users can show or set this value regardless of opening the
		 serial device file or not.

		 The RX trigger can be set one of four kinds of values for UART
		 serials. When users input a meaning less value to this I/F,
		 the RX trigger is changed to the nearest lower value for the
		 device specification. For example, when user sets 7bytes on
		 16550A, which has 1/4/8/14 bytes trigger, the RX trigger is
		 automatically changed to 4 bytes.

What:		/sys/class/tty/ttyS<x>/console
Date:		February 2020
Contact:	Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Description:
		 Allows user to detach or attach back the given device as
		 kernel console. It shows and accepts a boolean variable.