| 63f3cd5d | 17-Mar-2025 |
Jiri Slaby (SUSE) <[email protected]> |
tty: tty_driver: document both {,__}tty_alloc_driver() properly
__tty_alloc_driver()'s kernel-doc needed some care: describe the return value using the standard "Returns:", and use the new enum tty_
tty: tty_driver: document both {,__}tty_alloc_driver() properly
__tty_alloc_driver()'s kernel-doc needed some care: describe the return value using the standard "Returns:", and use the new enum tty_driver_flag for @flags.
Then, the tty_alloc_driver() macro was undocumented, but referenced many times in the docs. Copy the docs from the above (except the @owner parameter, obviously).
Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| 109e06ae | 17-Mar-2025 |
Jiri Slaby (SUSE) <[email protected]> |
tty: tty_driver: convert "TTY Driver Flags" to an enum
Convert TTY_DRIVER_* macros (flags) to an enum. This allows for easier kernel-doc (the comment needed fine tuning), grouping of these nicely, a
tty: tty_driver: convert "TTY Driver Flags" to an enum
Convert TTY_DRIVER_* macros (flags) to an enum. This allows for easier kernel-doc (the comment needed fine tuning), grouping of these nicely, and proper checking.
Given these are flags, define them using modern BIT() instead of hex constants.
It turns out (thanks, kernel-doc checker) that internal TTY_DRIVER_INSTALLED was undocumented. Fix that too.
Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| 71067fb7 | 19-Sep-2023 |
Jiri Slaby (SUSE) <[email protected]> |
tty: fix kernel-doc for functions in tty.h
tty_kref_get() is already included in Documentation, but is not properly formatted. Fix this.
tty_get_baud_rate() is neither properly formatted, nor is in
tty: fix kernel-doc for functions in tty.h
tty_kref_get() is already included in Documentation, but is not properly formatted. Fix this.
tty_get_baud_rate() is neither properly formatted, nor is included. Fix both.
Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| b49a0ff7 | 16-Aug-2023 |
Jiri Slaby (SUSE) <[email protected]> |
tty: tty_buffer: use __tty_insert_flip_string_flags() in tty_insert_flip_char()
Use __tty_insert_flip_string_flags() for the slow path of tty_insert_flip_char(). The former is generic enough, so the
tty: tty_buffer: use __tty_insert_flip_string_flags() in tty_insert_flip_char()
Use __tty_insert_flip_string_flags() for the slow path of tty_insert_flip_char(). The former is generic enough, so there is no reason to reimplement the injection once again.
So now we have a single function stuffing into tty buffers.
Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| afe3154b | 15-Mar-2023 |
Daniel Starke <[email protected]> |
tty: n_gsm: add ioctl for DLC config via ldisc handle
The application which initializes the n_gsm ldisc may like to set individual default parameters for each DLCI or take over of the application sp
tty: n_gsm: add ioctl for DLC config via ldisc handle
The application which initializes the n_gsm ldisc may like to set individual default parameters for each DLCI or take over of the application specific DLCI configuration completely. This is currently not possible. It is either possible to set common default parameters for all DLCIs or let the user application set its DLCI specific configuration parameters.
Add support of GSMIOC_GETCONF_DLCI and GSMIOC_SETCONF_DLCI for the n_gsm ldisc handle to support DLCI specific parameter configuration upfront.
Add a code example for this use case to the n_gsm documentation.
Signed-off-by: Daniel Starke <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| 7fb4028f | 11-Apr-2022 |
Jiri Slaby <[email protected]> |
Documentation: tty: n_gsm, use power of ReST
Reformat the whole document, so that automatic numbering and TOC is properly generated.
Signed-off-by: Jiri Slaby <[email protected]> Link: https://lore.ke
Documentation: tty: n_gsm, use power of ReST
Reformat the whole document, so that automatic numbering and TOC is properly generated.
Signed-off-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| e937eb43 | 11-Apr-2022 |
Jiri Slaby <[email protected]> |
Documentation: tty: n_gsm, delete "Additional Documentation"
All of the URLs give 404. There is a little point to preserve them. If really need be, we could try archive.org if the documents are not
Documentation: tty: n_gsm, delete "Additional Documentation"
All of the URLs give 404. There is a little point to preserve them. If really need be, we could try archive.org if the documents are not there by a chance.
Signed-off-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| 5b437ae9 | 11-Apr-2022 |
Jiri Slaby <[email protected]> |
Documentation: tty: move moxa-smartio.rst to tty
It is a tty_driver, not serial -- uart_driver. So move it to the tty docs dir too. (The same as the driver itself.)
Signed-off-by: Jiri Slaby <jslab
Documentation: tty: move moxa-smartio.rst to tty
It is a tty_driver, not serial -- uart_driver. So move it to the tty docs dir too. (The same as the driver itself.)
Signed-off-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| e2659503 | 11-Apr-2022 |
Jiri Slaby <[email protected]> |
Documentation: tty: move n_gsm to tty
We have n_tty documented in Documentation/driver-api/tty/. n_gsm belongs there too, so move from serial/ to tty/ too.
Signed-off-by: Jiri Slaby <[email protected]
Documentation: tty: move n_gsm to tty
We have n_tty documented in Documentation/driver-api/tty/. n_gsm belongs there too, so move from serial/ to tty/ too.
Signed-off-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| 1a4a8f6b | 11-Apr-2022 |
Jiri Slaby <[email protected]> |
Documentation: tty: introduce "Other Documentation"
So far only n_tty belongs here, but in the next patches, more will come.
Signed-off-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org
Documentation: tty: introduce "Other Documentation"
So far only n_tty belongs here, but in the next patches, more will come.
Signed-off-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|