From e814a233ed93402b07f3ea5d1f55ec1af08fbb76 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 16 Sep 2016 14:20:07 +0200 Subject: termios: Add IO control handler Update #2785. --- cpukit/libcsupport/include/rtems/termiostypes.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'cpukit/libcsupport/include/rtems') diff --git a/cpukit/libcsupport/include/rtems/termiostypes.h b/cpukit/libcsupport/include/rtems/termiostypes.h index 80251a22d2..a852c1dbed 100644 --- a/cpukit/libcsupport/include/rtems/termiostypes.h +++ b/cpukit/libcsupport/include/rtems/termiostypes.h @@ -183,6 +183,21 @@ typedef struct { const struct termios *term ); + /** + * @brief IO control handler. + * + * Invoked in case the Termios layer cannot deal with the IO request. + * + * @param[in] context The Termios device context. + * @param[in] request The IO control request. + * @param[in] buffer The IO control buffer. + */ + int (*ioctl)( + rtems_termios_device_context *context, + ioctl_command_t request, + void *buffer + ); + /** * @brief Termios device mode. */ -- cgit v1.2.3