You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/07/29 19:15:33 UTC
[incubator-nuttx] 04/04: sensor: format custom ioctl argument by stucture sensor_ioctl_s
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit f758e0f2603056ac006ddd596ee153ae042fef03
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Sat Apr 9 21:57:35 2022 +0800
sensor: format custom ioctl argument by stucture sensor_ioctl_s
Signed-off-by: Jiuzhu Dong <do...@xiaomi.com>
---
include/nuttx/sensors/sensor.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/nuttx/sensors/sensor.h b/include/nuttx/sensors/sensor.h
index a9ef796eb7..0658d5c788 100644
--- a/include/nuttx/sensors/sensor.h
+++ b/include/nuttx/sensors/sensor.h
@@ -958,6 +958,14 @@ struct sensor_reginfo_s
};
#endif
+/* This structure describes the context custom ioctl for device */
+
+struct sensor_ioctl_s
+{
+ size_t len; /* The length of argument of ioctl */
+ char data[1]; /* The argument buf of ioctl */
+};
+
/****************************************************************************
* Public Function Prototypes
****************************************************************************/