我有一个用户空间图书馆,用于向一个连续港口的装置传送。 图书馆相当复杂,执行许多任务,包括使负责人上载有效、分散信息、发送信息、处理答复、启动装置等等。
我愿将这一图书馆迁至凯尔特空间,并考虑将图书馆拆入几个明确界定的凯里略模块,以便让图书馆能够进入空间。
- I can leave the door open to swap out layers in the future (for example swapping out the USART layer with an SPI layer).
- Development will be easier. If it were divided up, I could migrate the library to kernel-space piece-by-piece.
Has anyone ever done something like this before? What are the best ways (in terms of efficiency) to communicate between kernel modules? Are there any pitfalls I should avoid?
最后,是否有好的驾驶员实例作为一套掩体模块加以实施?