linux内核态用户态交互,Linux下内核态-用户态高效易用的数据交互方法研究

Research of efficient and easy to use Linux kernel-user data interaction method

1、 Institute of Network Technology, Beijing University of Posts and Telecommunications, Beijing 100876

Abstract:Linux operating system is a single-kernel operating system, which put its subsystems into the kernel, and provides services for all processes. In order to protect system security, Linux divides the process space into two parts: user mode and kernel mode, separate from each other. In order to coordinate the behaviour of kernel mode and user mode programs, developers need a set of efficient and easy method to transfer data between the kernel-user state. Existing methods are unable to meet the requirements, due to their inefficiency or complexity. Therefore, based on exsiting methods provided by Linux, this paper discussed a new method that transferring data by the shared-memory, sending control message by Netlink, and managing share-memories with reading-writing-queues. And this method was tested, the results show that the method can improve the communication efficiency between kernel-mode user mode programs, and provides easy to use interface to read and write for data transmission.

你可能感兴趣的:(linux内核态用户态交互)