scispace - formally typeset
Search or ask a question
Patent

Communication structure and method for kernel mode and user mode

29 Oct 2014-
TL;DR: In this paper, a communication structure for a kernel mode and a user mode is described, where the user mode comprises a library connected with the kernel object drive module through communication and an application program connecting with the library through communication.
Abstract: The invention discloses a communication structure for a kernel mode and a user mode. The communication structure comprises the kernel mode and the user mode connected through communication. The kernel mode comprises a kernel object drive module and a kernel object module connected with the kernel object drive module through communication. The user mode comprises a library connected with the kernel object drive module through communication and an application program connected with the library through communication. The communication structure agents all communications in applications, and provides uniform ports for the application program and a kernel drive, when the kernel mode and the user mode are in communication, a communication port provided by an original Linux system is not called any longer, a uniform port provided by the module is adopted, modularization design is achieved, better bottom support is achieved, and large-scale management and development are facilitated.
Citations
More filters
Patent
27 May 2015
TL;DR: In this paper, a software framework implementation method of a management module of a storage system is described, where the development mode of the management module is abstracted to form the software framework.
Abstract: The invention discloses a software framework implementation method of a management module of a storage system, and belongs to the technical field of the management module of the storage system. According to the technical scheme, the implementation method is characterized in that a software framework comprises a UI (User Interface) layer, a middle layer and a bottom layer, wherein the UI layer provides an interface for an administrator or a management interface for an upper application and is meanwhile responsible for communication interaction with the middle layer; the middle layer is responsible for communication with the UI layer and the bottom layer for implementing interaction of user space data and kernel space data; the bottom layer is concrete implementation of an upper layer functional requirement, operates in a kernel state, and makes contact with actual hardware. The UI layer provides a command line tool or an API (Application Programming Interface); the middle layer is used for performing related configuration on the storage system through a configuration file; the bottom layer is used for realizing a query function, a storage equipment stop function and a storage equipment activation function. The development mode of the management module is abstracted to form the software framework, the development speed of the management module of the storage system is greatly improved, and the efficiency of a developer is improved.

7 citations

Patent
31 May 2017
Abstract: The invention discloses a method and device for processing multipath storage faults. The method comprises the steps that fault information of a multipath storage system is collected; the fault information is transmitted from a kernel state to a user state; the location and reason of the fault is analyzed in the user state; path repair or drive reset is conducted concerning different reasons of the fault. The device comprises a fault collecting unit, a transmitting unit, an analysis unit, and a path repair and drive reset unit. The fault collecting unit is used for collecting the fault information of the multipath storage system; the transmitting unit is used for transmitting the fault information from the kernel state to the user state; the analysis unit is used for analyzing the location and the reason of the fault in the user state; the path repair drive reset unit is used for conducting path repair or drive reset concerning different reasons of the fault. The method and device can quickly determine the fault and repair, and ensure the stability and reliability of the multipath storage system.

2 citations

Patent
15 Sep 2017
TL;DR: In this paper, a multi-core-system-based program emergency start method and device is described, in which after a start instruction is received, a basic program and an emergency program are operated in different computing units at the same time.
Abstract: The invention provides a multi-core-system-based program emergency start method and device and relates to the field of software start. The multi-core-system-based program emergency start method is characterized in that after a start instruction is received, a basic program and an emergency program are operated in different computing units at the same time; after the operation of the basic program is finished, the basic program takes over the operation of the emergency program. Thus, the problem in the traditional method is solved that only after the start of a basic program is over can the basic program guides the operation of an emergency program. When a system is just powered on, the emergency program and the basic program are operated in different computing units, so that the guide of basic programs is free of problems and it can be guaranteed that the operation of the emergency program can begin in the first time.

2 citations

Patent
20 Jan 2016
TL;DR: In this paper, a method and a device for calling an application system is described, which comprises the following steps of receiving calling information sent by an upper application through an interface, wherein the calling information comprises identity identification information of a lower application and a calling instruction corresponding to the lower application.
Abstract: The invention discloses a method and a device for calling an application system. The method comprises the following steps of receiving calling information sent by an upper application through an interface, wherein the calling information comprises identity identification information of a lower application and a calling instruction corresponding to the lower application; calling the lower application by an inter-process communication type, and controlling the lower application to execute the operation corresponding to the lower application; monitoring the running state of the lower application at preset intervals; if the running state of the lower application is a shutdown state, controlling the lower application to restart, and re-executing or continuing to execute the operation corresponding to the calling instruction; feeding a processing result back to the upper application, wherein the processing result is generated after the lower application successfully executes the operation corresponding to the calling instruction. By adopting the technical scheme, the method has the advantage that the upper application and the lower application can run in different process spaces, so even if the lower application shuts down, the influence on the normal running of the upper application can be avoided, and the safety and reliability are improved.

2 citations

Patent
12 Jan 2018
TL;DR: In this paper, the authors proposed a shared memory structure for communications between a kernel mode and a user mode and the application thereof. But the shared memory is divided into multiple memory pieces; one of the multiple memory piece is a control page used for storing user mode state information and the remaining memory pieces are data pages.
Abstract: The application provides a shared memory structure used for communications between a kernel mode and a user mode and the application thereof. The shared memory structure is characterized in that a shared memory is divided into multiple memory pieces; one of the multiple memory pieces is a control page used for storing user mode state information and the remaining memory pieces are data pages; eachdata page comprises a first area and a second area; the first area is used for storing data page distribution information on communication data of the kernel mode and the user mode and storing data page state information; and the second area is used for storing communication data of the kernel mode and the user mode. The technical scheme provided by the invention can improve performance of sharedmemory and communication performance of the kernel mode and the user mode.

2 citations

References
More filters
Patent
04 Dec 2013
TL;DR: In this article, a method and system for communication of a user state and an inner core is presented, in which a network data structure of a registered interface of a physical network card is obtained in the user state, and the name of the registered interface is used for registering a virtual network card interface in the inner core according to the obtained data structure.
Abstract: The invention provides a method and system for communication of a user state and an inner core. The method for the communication of the user state and the inner core comprises the steps that a network data structure of a registered interface of a physical network card is obtained in the user state, the name of the registered interface of the physical network card is used for registering a virtual network card interface in the inner core according to the obtained network data structure of the registered interface of the physical network card, the physical network card in the user state is used for receiving mainframe receiving messages needing to be processed by the inner core, the mainframe receiving messages are transmitted to the inner core through a corresponding virtual network interface card, and the mainframe receiving messages processed by the inner core are transmitted to the user state through corresponding virtual network cards, and are sent to the physical network card through the user state. The method and system for the communication of the user state and the inner core can meet sensing requests of the physical network interface states by the user state and the inner core, and meanwhile the switchover problem of message formats of the user state and message formats of the inner core is solved. The system performance loss of information transmission between the user state and the inner core is reduced, the time of information transmission is saved, and efficiency of message transmission and processing is improved.

9 citations

Patent
19 Feb 2014
TL;DR: In this paper, a method for implementing a user mode drive program in an embedded Linux is described, which is similar to performance of the traditional kernel mode device drive program, and fault isolation is achieved, and a fault occurring on a user layer component cannot influence a kernel.
Abstract: The invention relates to a method for implementing a user mode drive program in an embedded Linux, and belongs to the technical field of embedded operating systems. The method for implementing the user mode drive program in the embedded Linux comprises the specific steps of carrying out separation on a traditional kernel mode drive program to form a k-driver component running in a kernel mode and a u-driver component running in a user mode according to whether performance is related or not and priorities, building a dynamic loadable kernel module k-mod in the kernel mode, and building a dynamic link library u-lib in the user mode. According to a user mode programming tool, a programmer is allowed to use universal mature programming tools such as a code debugger when carrying out programming, and coding quality is improved; better performance is achieved, and performance, such as the throughput, the delay and the CPU overhead, is similar to performance of the traditional kernel mode device drive program; fault isolation is achieved, and a fault occurring on a user layer component cannot influence a kernel, namely, safe operation of a whole system cannot be influenced; compatibility is achieved, the method for implementing the user mode drive program in the embedded Linux is compatible with an existing embedded Linux system, and the same interfaces are provided.

9 citations

Patent
23 Apr 2014
TL;DR: In this paper, an access method and device for an input/output port is described. But the access method is restricted to a single device file, and the user can call the interface device file to have the access to the port through a preset functional instruction.
Abstract: The invention discloses an access method and device for an input/output port. The access method includes the steps that a device file of a current operation system is analyzed, and whether an interface device file exists in the device file of the operation system or not is judged; if not, device interface process information is added in a system kernel of the operation system, so that the device file of the operation system is prompted to have the interface device file; through a preset functional instruction, the interface device file is called to have access to the input/output port. When the operation system lacks the interface device file, the device interface progress information is added, so that the operation system is prompted to have the interface device file, a user can call the interface device file to have the access to the port through the preset functional instruction, the trouble that a mmap function, mapping and other operation need to be called to have the access to the input/output port by user space is avoided, and technical requirements are reduced for the user.

2 citations