Documentation/ABI/testing/sysfs-tty

Source file repositories/reference/linux-study-clean/Documentation/ABI/testing/sysfs-tty

File Facts

System
Linux kernel
Corpus path
Documentation/ABI/testing/sysfs-tty
Extension
[no extension]
Size
5168 bytes
Lines
167
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: Documentation
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

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>

Annotation

Implementation Notes