Linux system-based kernel message delivery method

A message distribution and message technology, applied in the field of linux platform, can solve problems such as waste of resources

Active Publication Date: 2013-04-03
KONKA GROUP
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It aims to solve the problem of waste of resources caused by direct monitoring of different kernel events that need to be monitored in Linux systems in the prior art by setting up monitoring sockets in different applications or modules.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Linux system-based kernel message delivery method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention provides a method for distributing kernel messages based on a linux system. In order to make the object, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0019] see figure 1 , which is a flow chart of the kernel message distribution method based on the linux system of the present application. As shown in the figure, the kernel message distribution method based on the linux system includes the following steps:

[0020] S1, create a kernel message monitoring background process and a message consumption queue, the kernel message monitoring background process is used to monitor all kernel messages or events, and realize the message distribution and transmission to event registrants in the background process; ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a linux system-based kernel message delivery method. The method comprises the following steps: firstly, a kernel message monitoring background process and a message consumption queue are established; secondly, monitoring information for the kernel message monitoring message background is registered in a particular application process, and is stored in the message consumption queue of the monitoring background process; thirdly, when an event or a message is generated, the kernel message monitoring background process examines whether matching monitoring information is in the message consumption queue or not one by one; and lastly, corresponding message callback action is carried out. According to the invention, the kernel message monitoring background is established, a simple and easy kernel message monitoring registration method and various message callback methods are provided, as a result, information communication and delivery between a kernel and a user can be achieved in different application processes or modules in an application layer by a simple method.

Description

technical field [0001] The invention relates to the technical field of linux platforms, in particular to a method for distributing kernel messages based on a linux system. Background technique [0002] Linux is a free and open source Unix-like operating system that can be installed on a variety of computer hardware devices, such as mobile phones, tablets, routers, video game consoles, desktop computers, mainframes and supercomputers. The Linux system is a leading operating system, and the 10 fastest supercomputers in the world all run the Linux operating system. [0003] Under linux, the kernel manages the use of various devices and publishes the status information or change events of the devices in the form of kernel messages or events. At the application layer, it is necessary to obtain various kernel messages or events through specific channels to realize the relationship between the kernel and the user. Communication and transfer of information between applications. In...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/38
Inventor 彭文剑
Owner KONKA GROUP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products