kernel space 與 user space 溝通
想要請問一下kernel space 與 user space 溝通的問題網上大多的資料都是說在kernel space建立模塊
在user space上寫程式透過 ioctl() 即可取得或傳送資訊至 kernel端
但我現在的需求是顛倒的
需要的是在user space上寫好function,
kernel端可以呼叫user space的function執行
因為是嵌入式系統, 不知道如何像一般操作開啟user程式執行
所以希望可以直接從kernel端呼叫user function
這種作法有辦法做到嗎? 直接從kernel端呼叫user function,netlink不是可以很好实现么? kernel主动向user space发起通信,貌似只有netlink可以做到 可以参考hotplug netlink 比较灵活,mmap 也可以
页:
[1]