tock / libtock-rs

Rust userland library for Tock
Apache License 2.0
163 stars 109 forks source link

IPC: Initial commit of Inter-process communication #535

Open alistair23 opened 7 months ago

alistair23 commented 7 months ago

This is a RFC for adding IPC support to libtock-rs.

The idea here is to support the Tock kernel IPC mechanism. Although running multiple libtock-rs apps is difficult, it is still possible so I think we should support IPC.

As well as that on ARM it's not difficult to run a libtock-rs application that communicates with libtock-c applications.

The current subscribe design in libtock-rs doesn't work with the IPC subscribe mechanism. I'm not sure why that's the case (I can't remember and I don't see if discussed in the design constraints).

This adds a new subscribe allows runtime configurable subscribe numbers. We could instead edit the current one or any other ideas anyone has.

The code compiles but it untested, currently just looking for comments on how to handle this