summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/termiostypes.h
diff options
context:
space:
mode:
authorChristian Mauderer <christian.mauderer@embedded-brains.de>2021-08-12 09:51:55 +0200
committerChristian Mauderer <christian.mauderer@embedded-brains.de>2022-02-10 09:07:26 +0100
commit7b5948d4d220ad33864a7b60d8133809908b0d2e (patch)
tree1bf85909962d28b96d57bac0e3fd869f2be0a7aa /cpukit/include/rtems/termiostypes.h
parentcpukit/microblaze: Simplify dispatch assembly (diff)
downloadrtems-7b5948d4d220ad33864a7b60d8133809908b0d2e.tar.bz2
termios: Pass number of sent chars to l_start
At the moment the line discipline start function (l_start) has no possibility to get feedback about the number of characters that have been sent. This patch passes that information via an additional parameter. The change might trigger a warning on existing code because of a pointer mismatch but it shouldn't break it. An existing function with the old API will just ignore the additional parameter. Update #4493
Diffstat (limited to '')
-rw-r--r--cpukit/include/rtems/termiostypes.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/include/rtems/termiostypes.h b/cpukit/include/rtems/termiostypes.h
index ef2c958271..5821d52775 100644
--- a/cpukit/include/rtems/termiostypes.h
+++ b/cpukit/include/rtems/termiostypes.h
@@ -367,6 +367,10 @@ typedef struct rtems_termios_tty {
*/
rtems_id rxTaskId;
rtems_id txTaskId;
+ /*
+ * Information for the tx task how many characters have been dequeued.
+ */
+ int txTaskCharsDequeued;
/*
* line discipline related stuff
@@ -482,7 +486,7 @@ struct rtems_termios_linesw {
int (*l_read )(struct rtems_termios_tty *tp,rtems_libio_rw_args_t *args);
int (*l_write)(struct rtems_termios_tty *tp,rtems_libio_rw_args_t *args);
int (*l_rint )(int c,struct rtems_termios_tty *tp);
- int (*l_start)(struct rtems_termios_tty *tp);
+ int (*l_start)(struct rtems_termios_tty *tp,int len);
int (*l_ioctl)(struct rtems_termios_tty *tp,rtems_libio_ioctl_args_t *args);
int (*l_modem)(struct rtems_termios_tty *tp,int flags);
};