summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/include/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-16 14:20:07 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-19 07:52:34 +0200
commite814a233ed93402b07f3ea5d1f55ec1af08fbb76 (patch)
treee912d1d77a015227663614477e9db216403bff99 /cpukit/libcsupport/include/rtems
parenttermios: Use IMFS nodes for new Termios devices (diff)
downloadrtems-e814a233ed93402b07f3ea5d1f55ec1af08fbb76.tar.bz2
termios: Add IO control handler
Update #2785.
Diffstat (limited to 'cpukit/libcsupport/include/rtems')
-rw-r--r--cpukit/libcsupport/include/rtems/termiostypes.h15
1 files changed, 15 insertions, 0 deletions
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
@@ -184,6 +184,21 @@ typedef struct {
);
/**
+ * @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.
*/
rtems_termios_device_mode mode;