Add an ioctl interface for userspace to kernel calls

This adds an ioctl interface for NuttX protected build, allowing
system calls from user space to kernel for uORB, HRT and crypto

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2022-02-18 07:53:13 +01:00
committed by Beat Küng
parent 8489cec08f
commit db3baf6c26
4 changed files with 184 additions and 0 deletions
@@ -56,11 +56,21 @@
#include <px4_platform_common/crypto.h>
#endif
#if !defined(CONFIG_BUILD_FLAT)
#include <px4_platform/board_ctrl.h>
#endif
extern void cdcacm_init(void);
int px4_platform_init()
{
#if !defined(CONFIG_BUILD_FLAT)
/* initialize userspace-kernelspace call gate interface */
kernel_ioctl_initialize();
#endif
int ret = px4_console_buffer_init();
if (ret < 0) {