Unlock instant, AI-driven research and patent intelligence for your innovation.

Input event processing method and system based on Linux system

A technology of input events and processing methods, which is applied in the field of input event processing based on Linux systems, can solve the problems of large system overhead and running time, and achieve the effect of reducing system overhead and running time

Inactive Publication Date: 2013-06-19
SHENGLE INFORMATION TECH SHANGHAI
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The purpose of the present invention is to provide a Linux system-based input event processing method and system to solve the problem in the prior art that the processing of input events needs to be dispatched twice, thus requiring relatively large system overhead and running time.

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
  • Input event processing method and system based on Linux system
  • Input event processing method and system based on Linux system
  • Input event processing method and system based on Linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] In this embodiment, a method for processing an input event based on a Linux system is provided. Please refer to figure 2 , which is a schematic flowchart of a method for processing an input event based on a Linux system according to Embodiment 1 of the present invention. Such as figure 2 As shown, the processing method includes:

[0041] Step S20: Acquiring basic input events;

[0042] Step S21: converting the basic input event into a graphics library message;

[0043] Step S22: Respond to the graphics library message;

[0044] Wherein, the step S21 and the step S20 are performed in the same kernel process.

[0045] In this embodiment, correspondingly, an input event processing system based on a Linux system is also provided. Please refer to image 3 , which is a schematic module diagram of an input event processing system based on a Linux system according to Embodiment 1 of the present invention. Such as image 3 As shown, the processing system includes:

...

Embodiment 2

[0057] Please refer to Figure 5 and Figure 6 ,in, Figure 5 It is a schematic flow diagram of the input event processing method based on the Linux system in Embodiment 2 of the present invention; Figure 6 It is a schematic diagram of modules of the input event processing system based on the Linux system according to Embodiment 2 of the present invention.

[0058] The difference between this embodiment and Embodiment 1 is that the step S51 and step S52 are carried out in the same process, which is the target process here, and the step S50 is carried out in another process, which is the kernel thread here; similarly, the processing The module 61 and the response module 62 work in the same process, here is the target process, and the reading module 60 works in another process, here is the kernel thread. It is easy to know that, thus, the dispatched message will be the basic input event. For other processing, reference may be made to Embodiment 1, which will not be repeated...

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 provides an input event processing method and a system based on a Linux system. The method includes that step1: a basic input event is obtained; step2: the basic input event is changed into graphics library information; step3: the graphics library information is responded, wherein the step2 and the step1 are carried out in the same progress, or the step2 and the step3 are carried out in the same progress. Changing of the basic input event into the graphics library information and obtaining of the basic input event are carried out in the same progress, or changing of the basic input event into the graphics library information and responding to the graphics library information are carried out in the same progress, so that only one distribution progress is needed in processing the input event, and system overhead and operation time are reduced.

Description

technical field [0001] The invention relates to the technical field of operating systems, in particular to an input event processing method and system based on a Linux system. Background technique [0002] As an open source and free operating system, Linux system has been widely used in server, embedded and other fields. The Linux system can be divided into two parts when executing programs, one is the kernel space (Kernel Space), which can also be called the kernel, core layer or Kernel, etc.; the other is the user space (User Space), which can also be called the user space Or user layer etc. Hardware-related access control is executed in the kernel, while programs written by general users are executed in the user layer. The user layer and the kernel are two different areas, and each area cannot directly use each other's resources, and needs to use some system calls to do so. The system call will check the authority and operation of the caller to protect the running of t...

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
IPC IPC(8): G06F9/46
Inventor 梁金祥
Owner SHENGLE INFORMATION TECH SHANGHAI
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More