Lines Matching +full:index +full:- +full:starts +full:- +full:at +full:- +full:one
1 .. SPDX-License-Identifier: GPL-2.0
14 allocated structure is filled with information. See `TTY Driver Reference`_ at
17 The allocation routines expect a number of devices the driver can handle at
28 .. kernel-doc:: include/linux/tty_driver.h
30 .. kernel-doc:: drivers/tty/tty_io.c
34 ----------------
39 .. kernel-doc:: include/linux/tty_driver.h
42 ----
54 .. kernel-doc:: drivers/tty/tty_io.c
58 -------------------
70 through struct attribute_group. Both of them register ``index``'th device and
73 manage free indices and choosing the right one. The TTY layer only refuses to
76 When the device is opened, the TTY layer allocates struct tty_struct and starts
82 .. kernel-doc:: drivers/tty/tty_io.c
86 ----
89 ------------------------
91 it. It must be known to the TTY layer at :c:member:`tty_driver.ops.install()`
92 at latest. There are few helpers to *link* the two. Ideally, the driver uses
94 tty_register_device() and tty_register_device_attr() at the registration time.
98 index *before* the actual registration by tty_port_link_device(). If it still
100 :c:member:`tty_driver.ops.install` hook as a last resort. The last one is
101 dedicated mostly for in-memory devices like PTY where tty_ports are allocated
106 .. kernel-doc:: drivers/tty/tty_port.c
110 ----
116 noted at the end. struct tty_operations are documented next.
118 .. kernel-doc:: include/linux/tty_driver.h
121 ----
128 .. kernel-doc:: include/linux/tty_driver.h