针对CMS/NML通信系统无法应用于内核空间的问题,提出了一种SM—NML通信机制,为本地内核与用户进程提供了统一的通信接口,还可以方便地与CMS/NML结合实现内核进程与远程进程通信。该通信机制以字符设备为存储介质,利用缓冲池管理和读写管理为通信提供了底层支持,并在此基础上进行了封装,为用户提供了项层通信接口。分析了SM—NML通信机制的通信延迟,给出了一个具体的应用实例,验证了其可用性。
To solve the problem that CMS/NML cannot be applied in the kernel space, a kind of communication mechanism called SM _ NML is proposed, which provide uniform communication interface for local kernel and user processes. The commu- nication of kernel processes and remote processes is easily implemented by combining SM _ NML with CMS/NML. SM_ NML use a character device to be a storage media, and the underlying function is implemented by managing the buffers and reading and writing buffers. Based on these, the upper level interface is privided to user by package the services. Then, the delay of SM_ NML communica- tion mechanism is evaluated. Finally, the availability of the proposed communication mechanism is validated by a specific application.