Reputation: 152
On the host, I have a wrapper library which JIT compiles a new module. On the device, I have a daemon kernel with its threads waiting for custom commands (like, run this function) from the wrapper library. Are the functions inside the other module callable from the daemon kernel's threads?
Upvotes: 1
Views: 217
Reputation: 151983
Not directly, without host intervention, no. This may change in the future.
Since you already have a synchronization mechanism between the host and the device for your "daemon" kernel (presumably, to pass your custom commands to it), it seems like the kernel could easily send messages to the host as well. The host could be polling for those messages and dispatch whatever separate functions you want.
Upvotes: 1